Skip to content
Commit 673a32d9 authored by Vsevolod Stakhov's avatar Vsevolod Stakhov Committed by GitHub
Browse files

Use grid topology for bitfileds distribution messages (#5389)



* Move NewGossipTopology -> SessionGridTopology outside as this implementation is shared

* Add method to return peers difference between topologies

* Implement basic grid topology usage for the bitfield distribution

* Fix tests

* Oops, fix tests

* Add some tests for random routing

* Add a unit test for topology distribution

* Store the current and the previous topology to match sessions boundaries

* Update tests

* Update node/network/bitfield-distribution/src/lib.rs

Co-authored-by: default avatarAndronik <[email protected]>

* Update node/network/protocol/src/grid_topology.rs

Co-authored-by: default avatarAndronik <[email protected]>

* Update node/network/bitfield-distribution/src/lib.rs

Co-authored-by: default avatarAndronik <[email protected]>

* Add some debug

* Fix tests as HashSet order is undefined

Co-authored-by: default avatarAndronik <[email protected]>
parent 53a1db59
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment