Sync: Fix issue of not freeing a block announcement slot (#8006)
* Sync: Fix issue of not freeing a block announcement slot There was a bug that when the block announcement validation returned an error, the slot reserved for this validation wasn't freed. This could lead to a situation where we rejected any block announcement from such a peer for that the block announcement returned an error multiple times. * Better logging * Fuck I'm dumb *
Showing
- substrate/client/network/src/protocol/sync.rs 45 additions, 11 deletionssubstrate/client/network/src/protocol/sync.rs
- substrate/client/network/test/src/sync.rs 38 additions, 0 deletionssubstrate/client/network/test/src/sync.rs
- substrate/primitives/consensus/common/src/block_validation.rs 4 additions, 0 deletions...trate/primitives/consensus/common/src/block_validation.rs
Please register or sign in to comment