Evict inactive peers from the collator protocol peer-set (#2680)
* malicious reputation cost is fatal * make ReportBad a malicious cost * futures control-flow for cleaning up inactive collator peers * guide: network bridge updates * add `PeerDisconnected` message * guide: update * reverse order * remember to match * implement disconnect peer in network bridge * implement disconnect_inactive_peers * test * remove println * don't hardcore policy * add fuse outside of loop * use default eviction policy
Showing
- polkadot/Cargo.lock 1 addition, 0 deletionspolkadot/Cargo.lock
- polkadot/node/network/bridge/src/action.rs 6 additions, 0 deletionspolkadot/node/network/bridge/src/action.rs
- polkadot/node/network/bridge/src/lib.rs 10 additions, 0 deletionspolkadot/node/network/bridge/src/lib.rs
- polkadot/node/network/bridge/src/network.rs 19 additions, 0 deletionspolkadot/node/network/bridge/src/network.rs
- polkadot/node/network/collator-protocol/Cargo.toml 1 addition, 0 deletionspolkadot/node/network/collator-protocol/Cargo.toml
- polkadot/node/network/collator-protocol/src/lib.rs 15 additions, 2 deletionspolkadot/node/network/collator-protocol/src/lib.rs
- polkadot/node/network/collator-protocol/src/validator_side.rs 372 additions, 33 deletions...adot/node/network/collator-protocol/src/validator_side.rs
- polkadot/node/network/protocol/src/reputation.rs 1 addition, 1 deletionpolkadot/node/network/protocol/src/reputation.rs
- polkadot/node/service/src/lib.rs 1 addition, 1 deletionpolkadot/node/service/src/lib.rs
- polkadot/node/subsystem/src/messages.rs 4 additions, 0 deletionspolkadot/node/subsystem/src/messages.rs
- polkadot/roadmap/implementers-guide/src/node/utility/network-bridge.md 4 additions, 0 deletions...map/implementers-guide/src/node/utility/network-bridge.md
- polkadot/roadmap/implementers-guide/src/types/overseer-protocol.md 3 additions, 1 deletion...roadmap/implementers-guide/src/types/overseer-protocol.md
Please register or sign in to comment