swarm/network: Revised depth and health for Kademlia (#18354)
* swarm/network: Revised depth calculation with tests * swarm/network: WIP remove redundant "full" function * swarm/network: WIP peerpot refactor * swarm/network: Make test methods submethod of peerpot and embed kad * swarm/network: Remove commented out code * swarm/network: Rename health test functions * swarm/network: Too many n's * swarm/network: Change hive Healthy func to accept addresses * swarm/network: Add Healthy proxy method for api in hive * swarm/network: Skip failing test out of scope for PR * swarm/network: Skip all tests dependent on SuggestPeers * swarm/network: Remove commented code and useless kad Pof member * swarm/network: Remove more unused code, add counter on depth test errors * swarm/network: WIP Create Healthy assertion tests * swarm/network: Roll back health related methods receiver change * swarm/network: Hardwire network minproxbinsize in swarm sim * swarm/network: Rework Health test to strict Pending add test for saturation And add test for as many as possible up to saturation * swarm/network: Skip discovery tests (dependent on SuggestPeer) * swarm/network: Remove useless minProxBinSize in stream * swarm/network: Remove unnecessary testing.T param to assert health * swarm/network: Implement t.Helper() in checkHealth * swarm/network: Rename check back to assert now that we have helper magic * swarm/network: Revert WaitTillHealthy change (deferred to nxt PR) * swarm/network: Kademlia tests GotNN => ConnectNN * swarm/network: Renames and comments * swarm/network: Add comments
Showing
- swarm/network/discovery.go 1 addition, 1 deletionswarm/network/discovery.go
- swarm/network/kademlia.go 149 additions, 170 deletionsswarm/network/kademlia.go
- swarm/network/kademlia_test.go 226 additions, 69 deletionsswarm/network/kademlia_test.go
- swarm/network/simulation/kademlia.go 5 additions, 4 deletionsswarm/network/simulation/kademlia.go
- swarm/network/simulation/simulation.go 1 addition, 2 deletionsswarm/network/simulation/simulation.go
- swarm/network/simulations/discovery/discovery_test.go 26 additions, 11 deletionsswarm/network/simulations/discovery/discovery_test.go
- swarm/network/stream/common_test.go 1 addition, 2 deletionsswarm/network/stream/common_test.go
- swarm/network/stream/delivery_test.go 1 addition, 2 deletionsswarm/network/stream/delivery_test.go
- swarm/network/stream/intervals_test.go 0 additions, 1 deletionswarm/network/stream/intervals_test.go
- swarm/network/stream/snapshot_retrieval_test.go 0 additions, 1 deletionswarm/network/stream/snapshot_retrieval_test.go
- swarm/network/stream/snapshot_sync_test.go 1 addition, 6 deletionsswarm/network/stream/snapshot_sync_test.go
- swarm/network/stream/syncer_test.go 0 additions, 1 deletionswarm/network/stream/syncer_test.go
- swarm/network/stream/visualized_snapshot_sync_sim_test.go 1 addition, 1 deletionswarm/network/stream/visualized_snapshot_sync_sim_test.go
- swarm/network_test.go 0 additions, 1 deletionswarm/network_test.go
- swarm/pss/pss.go 1 addition, 1 deletionswarm/pss/pss.go
Loading
Please register or sign in to comment