statement-distribution: validator disabling (#1841)

Closes #1591.

The purpose of this PR is filter out backing statements from the network
signed by disabled validators. This is just an optimization, since we
will do filtering in the runtime in #1863 to avoid nodes to filter
garbage out at block production time.

- [x] Ensure it's ok to fiddle with the mask of manifests
- [x] Write more unit tests
- [x] Test locally
- [x] simple zombienet test
- [x] PRDoc

---------

Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
This commit is contained in:
ordian
2024-01-10 10:32:52 +01:00
committed by GitHub
parent 01ea45c3a1
commit a4195326b9
14 changed files with 1577 additions and 833 deletions
@@ -253,7 +253,9 @@ impl GridTracker {
/// This checks whether the peer is allowed to send us manifests
/// about this group at this relay-parent. This also does sanity
/// checks on the format of the manifest and the amount of votes
/// it contains. It has effects on the stored state only when successful.
/// it contains. It assumes that the votes from disabled validators
/// are already filtered out.
/// It has effects on the stored state only when successful.
///
/// This returns a `bool` on success, which if true indicates that an acknowledgement is
/// to be sent in response to the received manifest. This only occurs when the