Do not send messages twice in bitfield distribution (#2005)
* Do not send messages twice in bitfield distribution This removes a bug which resulted in sending bitfield messages multiple times by not checking if we already relayed them. Besides that it also adds an optimization to not relay a message to a peer that send us this message. * Review comments * Break some lines
Showing
- Cargo.lock 0 additions, 2 deletionsCargo.lock
- node/network/bitfield-distribution/Cargo.toml 0 additions, 2 deletionsnode/network/bitfield-distribution/Cargo.toml
- node/network/bitfield-distribution/src/lib.rs 224 additions, 61 deletionsnode/network/bitfield-distribution/src/lib.rs
- node/network/protocol/src/lib.rs 9 additions, 0 deletionsnode/network/protocol/src/lib.rs
Please register or sign in to comment