Author | SHA1 | Message | Date |
---|---|---|---|
Sam Kleinman |
0781ca3f50
|
p2p/pex: cleanup to pex internals and peerManager interface (#6476) | 4 years ago |
Callum Waters |
9efc20c963
|
p2p: improve PEX reactor (#6305) | 4 years ago |
Sam Kleinman |
3a690568ae
|
p2p: make peer scoring test more resilient (#6322) | 4 years ago |
Sam Kleinman |
91506bf25d
|
p2p: simple peer scoring (#6277) | 4 years ago |
Erik Grinaker |
9b6d6a3ad0
|
p2p: tighten up Router and add tests (#6044)
This cleans up the `Router` code and adds a bunch of tests. These sorts of systems are a real pain to test, since they have a bunch of asynchronous goroutines living their own lives, so the test coverage is decent but not fantastic. Luckily we've been able to move all of the complex peer management and transport logic outside of the router, as synchronous components that are much easier to test, so the core router logic is fairly small and simple. This also provides some initial test tooling in `p2p/p2ptest` that automatically sets up in-memory networks and channels for use in integration tests. It also includes channel-oriented test asserters in `p2p/p2ptest/require.go`, but these have primarily been written for router testing and should probably be adapted or extended for reactor testing. |
4 years ago |
Erik Grinaker |
2aad26e2f1
|
p2p: tighten up and test PeerManager (#6034)
This tightens up the `PeerManager` and related code, adds a ton of tests, and fixes a bunch of inconsistencies and bugs. |
4 years ago |