Skip to content

Commit c3bb3f4

Browse files
committed
statement-distribution: validator disabling
1 parent a954ca5 commit c3bb3f4

File tree

15 files changed

+1396
-666
lines changed

15 files changed

+1396
-666
lines changed

.gitlab/pipeline/zombienet/polkadot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ zombienet-polkadot-functional-0008-dispute-old-finalized:
131131
--local-dir="${LOCAL_DIR}/functional"
132132
--test="0008-dispute-old-finalized.zndsl"
133133

134+
zombienet-polkadot-functional-0009-validator-disabling:
135+
extends:
136+
- .zombienet-polkadot-common
137+
script:
138+
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
139+
--local-dir="${LOCAL_DIR}/functional"
140+
--test="0009-validator-disabling.zndsl"
141+
134142
zombienet-polkadot-smoke-0001-parachains-smoke-test:
135143
extends:
136144
- .zombienet-polkadot-common

polkadot/node/network/statement-distribution/src/error.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use polkadot_node_network_protocol::PeerId;
2121
use polkadot_node_subsystem::{RuntimeApiError, SubsystemError};
2222
use polkadot_node_subsystem_util::{
23-
backing_implicit_view::FetchError as ImplicitViewFetchError, runtime,
23+
self as util, backing_implicit_view::FetchError as ImplicitViewFetchError, runtime,
2424
};
2525
use polkadot_primitives::{CandidateHash, Hash, Id as ParaId};
2626

@@ -75,6 +75,9 @@ pub enum Error {
7575
#[error("Fetching availability cores failed {0:?}")]
7676
FetchAvailabilityCores(RuntimeApiError),
7777

78+
#[error("Fetching disabled validators failed {0:?}")]
79+
FetchDisabledValidators(util::Error),
80+
7881
#[error("Fetching validator groups failed {0:?}")]
7982
FetchValidatorGroups(RuntimeApiError),
8083

polkadot/node/network/statement-distribution/src/v2/grid.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ impl GridTracker {
253253
/// This checks whether the peer is allowed to send us manifests
254254
/// about this group at this relay-parent. This also does sanity
255255
/// checks on the format of the manifest and the amount of votes
256-
/// it contains. It has effects on the stored state only when successful.
256+
/// it contains. It assumes that the votes from disabled validators
257+
/// are already filtered out.
258+
/// It has effects on the stored state only when successful.
257259
///
258260
/// This returns a `bool` on success, which if true indicates that an acknowledgement is
259261
/// to be sent in response to the received manifest. This only occurs when the

0 commit comments

Comments
 (0)