diff options
author | Felix Lange <fjl@twurst.com> | 2015-05-16 06:38:28 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-05-25 07:17:14 +0800 |
commit | 1440f9a37a8baf67b989ddf0b8cc30c9a1970e14 (patch) | |
tree | f8db89ae4aeea16c4cb87877df8fea9688c6ac99 /miner | |
parent | 9f38ef5d970d1ccb50d2a7697562ea547ff625c8 (diff) | |
download | dexon-1440f9a37a8baf67b989ddf0b8cc30c9a1970e14.tar.gz dexon-1440f9a37a8baf67b989ddf0b8cc30c9a1970e14.tar.zst dexon-1440f9a37a8baf67b989ddf0b8cc30c9a1970e14.zip |
p2p: new dialer, peer management without locks
The most visible change is event-based dialing, which should be an
improvement over the timer-based system that we have at the moment.
The dialer gets a chance to compute new tasks whenever peers change or
dials complete. This is better than checking peers on a timer because
dials happen faster. The dialer can now make more precise decisions
about whom to dial based on the peer set and we can test those
decisions without actually opening any sockets.
Peer management is easier to test because the tests can inject
connections at checkpoints (after enc handshake, after protocol
handshake).
Most of the handshake stuff is now part of the RLPx code. It could be
exported or move to its own package because it is no longer entangled
with Server logic.
Diffstat (limited to 'miner')
0 files changed, 0 insertions, 0 deletions