Networking
Some initial networking stuff. Peers can make requests from each other. The code to pass blocks and transactions to the State has been commented out, since we don't know exactly how that's going to work yet. Almost nothing has been tested yet.
Working with TCP directly has really made me appreciate RPC. It abstracts away a lot of tedious code. But I think it's best that we continue to work directly with TCP for now.
There are also tons of places where errors should be logged. We can probably use the standard logger for the time being.
On the todo list:
-
Timeouts -
Proper ping/pong -
Tests -
Think about NAT traversal -
Add RegisterSimple
/CallSimple
methods for cleaner Block/Transaction code