-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devp2p: upgrade to v5 (EIP-706) (#760)
* drop support for v4 (obsolete, doesn't work with all clients since they use chunking and other obsolete v4 features that we're missing or don't support it at all) * rework asyncraises * always store generated p2p macro code (similar to eth2) * preparation for chronos cancellation support (more to be done here) * when peer is disconnected, ensure pending handshakes and requests are notified (instead of waiting for timeout) * disallow raising from `onPeerDisconnected` - this simplifies disconnection coordination among async tasks * introduce several warning logs for protocol breaches - these should be removed eventually, pending q/a on the rlpx layer in general * fix snappy compression - the payload without msgId should be compressed * remove strict checks on unused fields in RLPx message header (this matches geth behavior and the spirit of EIP-8) * add snappy dep
- Loading branch information
1 parent
034b788
commit 88e4be4
Showing
8 changed files
with
638 additions
and
580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.