Struct polkadot_node_core_pvf_common::execute::Handshake
source · pub struct Handshake {
- pub executor_params: ExecutorParams,
+ pub executor_params: ExecutorParams,
}
Expand description
The payload of the one-time handshake that is done when a worker process is created. Carries data from the host to the worker.
-Fields§
§executor_params: ExecutorParams
The executor parameters.
+Fields§
§executor_params: ExecutorParams
The executor parameters.
Trait Implementations§
source§impl Decode for Handshake
impl Decode for Handshake
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -28,8 +28,8 @@
input: &mut &[u8]
) -> Result<T, Error>
fn decode_into<I>( @@ -28,8 +28,8 @@ input: &mut &[u8] ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+bytes consumed. Read more
fn fmt_binary(self) -> FmtBinary<Self>where +bytes consumed. Read more
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/executor_intf/fn.params_to_wasmtime_semantics.html b/doc/polkadot_node_core_pvf_common/executor_intf/fn.params_to_wasmtime_semantics.html
index bc91bceef829..1be4b6c87e7b 100644
--- a/doc/polkadot_node_core_pvf_common/executor_intf/fn.params_to_wasmtime_semantics.html
+++ b/doc/polkadot_node_core_pvf_common/executor_intf/fn.params_to_wasmtime_semantics.html
@@ -1,3 +1,3 @@
params_to_wasmtime_semantics in polkadot_node_core_pvf_common::executor_intf - Rust pub fn params_to_wasmtime_semantics(
- par: &ExecutorParams
+ par: &ExecutorParams
) -> Result<Semantics, String>
\ No newline at end of file
diff --git a/doc/polkadot_node_core_pvf_common/executor_intf/struct.Executor.html b/doc/polkadot_node_core_pvf_common/executor_intf/struct.Executor.html
index b6db9e78097e..81769eb280c2 100644
--- a/doc/polkadot_node_core_pvf_common/executor_intf/struct.Executor.html
+++ b/doc/polkadot_node_core_pvf_common/executor_intf/struct.Executor.html
@@ -1,6 +1,6 @@
Executor in polkadot_node_core_pvf_common::executor_intf - Rust pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is
specific to that worker.
-Implementations§
Implementations§
source§impl Executor
sourcepub fn new(params: ExecutorParams) -> Result<Self, String>
sourcepub unsafe fn execute(
&self,
compiled_artifact_blob: &[u8],
params: &[u8]
diff --git a/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html b/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html
index 3674fa553105..c4fd368a3d93 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html
index 4344eb33b93b..65e540c4f665 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html
index a56d6fa4f518..e0c2ca3f3148 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html
index b46db2940630..8d2e8b0a6787 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html b/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
index b34d04342137..92c1daab7888 100644
--- a/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
+++ b/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
@@ -3,13 +3,13 @@
Should be cheap to clone.
Implementations§
source§impl PvfPrepData
sourcepub fn from_code(
code: Vec<u8>,
- executor_params: ExecutorParams,
+ executor_params: ExecutorParams,
prep_timeout: Duration,
prep_kind: PrepareJobKind
) -> Self
Returns an instance of the PVF out of the given PVF code and executor params.
sourcepub fn code_hash(&self) -> ValidationCodeHash
Returns validation code hash for the PVF
sourcepub fn executor_params(&self) -> Arc<ExecutorParams>
Returns executor params
+sourcepub fn executor_params(&self) -> Arc<ExecutorParams>
Returns executor params
sourcepub fn prep_timeout(&self) -> Duration
Returns preparation timeout.
sourcepub fn prep_kind(&self) -> PrepareJobKind
Returns preparation kind.
sourcepub fn from_discriminator_and_timeout(num: u32, timeout: Duration) -> Self
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html b/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
index b2e1f8b3299f..62ed9977e498 100644
--- a/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
+++ b/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
@@ -1,6 +1,6 @@
-Executor in polkadot_node_core_pvf_execute_worker - Rust pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is
+
Executor in polkadot_node_core_pvf_execute_worker - Rust pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is
specific to that worker.
-Implementations§
Implementations§
pub unsafe fn create_runtime_from_bytes(
+
sourcepub unsafe fn create_runtime_from_bytes(
&self,
compiled_artifact_blob: &[u8]
) -> Result<WasmtimeRuntime, WasmError>
Constructs the runtime for the given PVF, given the artifact bytes.
@@ -24,7 +24,7 @@ Safety
was not modified,
Failure to adhere to these requirements might lead to crashes and arbitrary code execution.
-Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Executor
§impl Send for Executor
§impl Sync for Executor
§impl Unpin for Executor
§impl UnwindSafe for Executor
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Executor
§impl Send for Executor
§impl Sync for Executor
§impl Unpin for Executor
§impl UnwindSafe for Executor
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
index c003bd000e99..88f20cac103a 100644
--- a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
+++ b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
@@ -1,6 +1,6 @@
prepare in polkadot_node_core_pvf_prepare_worker - Rust Function polkadot_node_core_pvf_prepare_worker::prepare
source · pub fn prepare(
blob: RuntimeBlob,
- executor_params: &ExecutorParams
+ executor_params: &ExecutorParams
) -> Result<Vec<u8>, WasmError>
Expand description
Runs preparation on the given runtime blob. If successful, it returns a serialized compiled
artifact which can then be used to pass into Executor::execute
after writing it to the disk.
\ No newline at end of file
diff --git a/doc/polkadot_node_jaeger/enum.Span.html b/doc/polkadot_node_jaeger/enum.Span.html
index 462050e4f9ca..b86b4e7e3fbf 100644
--- a/doc/polkadot_node_jaeger/enum.Span.html
+++ b/doc/polkadot_node_jaeger/enum.Span.html
@@ -19,9 +19,9 @@
sourcepub fn with_para_id(self, para_id: ParaId) -> Self
Attach a para-id to the span.
sourcepub fn with_stage(self, stage: Stage) -> Self
Attach a candidate stage.
Should always come with a CandidateHash
.
-sourcepub fn with_validator_index(self, validator: ValidatorIndex) -> Self
sourcepub fn with_chunk_index(self, chunk_index: u32) -> Self
sourcepub fn with_relay_parent(self, relay_parent: Hash) -> Self
sourcepub fn with_claimed_validator_index(
+
sourcepub fn with_validator_index(self, validator: ValidatorIndex) -> Self
sourcepub fn with_chunk_index(self, chunk_index: u32) -> Self
sourcepub fn with_relay_parent(self, relay_parent: Hash) -> Self
sourcepub fn with_claimed_validator_index(
self,
- claimed_validator_index: ValidatorIndex
+ claimed_validator_index: ValidatorIndex
) -> Self
sourcepub fn with_pov(self, pov: &PoV) -> Self
sourcepub fn with_int_tag(self, tag: &'static str, i: i64) -> Self
Add an additional int tag to the span without consuming.
Should be used sparingly, introduction of new types is preferred.
sourcepub fn with_uint_tag(self, tag: &'static str, u: u64) -> Self
sourcepub fn with_string_fmt_debug_tag<V: Debug>(
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html b/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html
index b07cfa7d033b..516e17374d29 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html
@@ -1,18 +1,18 @@
GridNeighbors in polkadot_node_network_protocol::grid_topology - Rust pub struct GridNeighbors {
pub peers_x: HashSet<PeerId>,
- pub validator_indices_x: HashSet<ValidatorIndex>,
+ pub validator_indices_x: HashSet<ValidatorIndex>,
pub peers_y: HashSet<PeerId>,
- pub validator_indices_y: HashSet<ValidatorIndex>,
+ pub validator_indices_y: HashSet<ValidatorIndex>,
}
Expand description
Information about the grid neighbors for a particular node in the topology.
Fields§
§peers_x: HashSet<PeerId>
Represent peers in the X axis
-§validator_indices_x: HashSet<ValidatorIndex>
Represent validators in the X axis
+§validator_indices_x: HashSet<ValidatorIndex>
Represent validators in the X axis
§peers_y: HashSet<PeerId>
Represent peers in the Y axis
-§validator_indices_y: HashSet<ValidatorIndex>
Represent validators in the Y axis
+§validator_indices_y: HashSet<ValidatorIndex>
Represent validators in the Y axis
Implementations§
source§impl GridNeighbors
sourcepub fn empty() -> Self
Utility function for creating an empty set of grid neighbors.
Useful for testing.
sourcepub fn required_routing_by_index(
&self,
- originator: ValidatorIndex,
+ originator: ValidatorIndex,
local: bool
) -> RequiredRouting
Given the originator of a message as a validator index, indicates the part of the topology
we’re meant to send the message to.
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html
index a68817532bd9..dc3569f2deb9 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html
@@ -14,7 +14,7 @@
&mut self,
session_index: SessionIndex,
topology: SessionGridTopology,
- local_index: Option<ValidatorIndex>
+ local_index: Option<ValidatorIndex>
)Update the current topology preserving the previous one
sourcepub fn get_current_topology(&self) -> &SessionGridTopologyEntry
Returns a current grid topology
sourcepub fn get_current_topology_mut(&mut self) -> &mut SessionGridTopologyEntry
Access the current grid topology mutably. Dangerous and intended
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html
index 40116bbec26e..9efea08db984 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html
@@ -9,7 +9,7 @@
&mut self,
session: SessionIndex,
topology: SessionGridTopology,
- local_index: Option<ValidatorIndex>
+ local_index: Option<ValidatorIndex>
)
Insert a new topology, no-op if already present.
Trait Implementations§
source§impl Default for SessionGridTopologies
source§fn default() -> SessionGridTopologies
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for SessionGridTopologies
§impl Send for SessionGridTopologies
§impl Sync for SessionGridTopologies
§impl Unpin for SessionGridTopologies
§impl UnwindSafe for SessionGridTopologies
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
index 2638700bc176..731086881dd3 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
@@ -5,7 +5,7 @@
) -> Self
Create a new session grid topology.
sourcepub fn compute_grid_neighbors_for(
&self,
- v: ValidatorIndex
+ v: ValidatorIndex
) -> Option<GridNeighbors>
Produces the outgoing routing logic for a particular peer.
Returns None
if the validator index is out of bounds.
Trait Implementations§
source§impl Clone for SessionGridTopology
source§fn clone(&self) -> SessionGridTopology
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SessionGridTopology
source§impl Default for SessionGridTopology
source§fn default() -> SessionGridTopology
Returns the “default value” for a type. Read moresource§impl PartialEq<SessionGridTopology> for SessionGridTopology
source§fn eq(&self, other: &SessionGridTopology) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html b/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
index 88b5b7b9f211..895cd36e1b6f 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
@@ -1,10 +1,10 @@
TopologyPeerInfo in polkadot_node_network_protocol::grid_topology - Rust pub struct TopologyPeerInfo {
pub peer_ids: Vec<PeerId>,
- pub validator_index: ValidatorIndex,
+ pub validator_index: ValidatorIndex,
pub discovery_id: AuthorityDiscoveryId,
}
Expand description
Information about a peer in the gossip topology for a session.
Fields§
§peer_ids: Vec<PeerId>
The validator’s known peer IDs.
-§validator_index: ValidatorIndex
The index of the validator in the discovery keys of the corresponding
+
§validator_index: ValidatorIndex
The index of the validator in the discovery keys of the corresponding
SessionInfo
. This can extend beyond the set of active parachain validators.
§discovery_id: AuthorityDiscoveryId
The authority discovery public key of the validator in the corresponding
SessionInfo
.
diff --git a/doc/polkadot_node_network_protocol/index.html b/doc/polkadot_node_network_protocol/index.html
index 1e119a40bd23..9912f88ec2cc 100644
--- a/doc/polkadot_node_network_protocol/index.html
+++ b/doc/polkadot_node_network_protocol/index.html
@@ -5,5 +5,5 @@
The basic operation of the 2D grid topology is that:Peer-sets and protocols used for parachains.
All peersets and protocols used for parachains. Request/response protocols used in Polkadot.
Overview over request/responses as used in Polkadot
. v1 notification protocol types. Macros
- Construct a new
OurView
with the given chain heads, finalized number 0 and disabled
-[jaeger::Span
]’s. - Construct a new view with the given chain heads and finalized number 0.
Structs
- Specialized wrapper around
View
. - Identifier of a peer of the network.
- Description of a reputation adjustment for a node.
- A succinct representation of a peer’s view. This consists of a bounded amount of chain heads
+
jaeger::Span
’s. - Construct a new view with the given chain heads and finalized number 0.
Structs
- Specialized wrapper around
View
. - Identifier of a peer of the network.
- Description of a reputation adjustment for a node.
- A succinct representation of a peer’s view. This consists of a bounded amount of chain heads
and the highest known finalized block number.
- An error indicating that this the over-arching message type had the wrong variant
Enums
- When sending a request, what to do on a disconnected recipient.
- The advertised role of a node.
- Unified annoyance cost and good behavior benefits.
- A protocol-versioned type.
Constants
- The minimum amount of peers to send gossip messages to.
Type Definitions
- Version-annotated messages used by the approval distribution subsystem.
- Version-annotated messages used by the bitfield distribution subsystem.
- Version-annotated messages used by the bitfield distribution subsystem.
- Version-annotated messages used by the gossip-support subsystem (this is void).
- Version-annotated messages used by the statement distribution subsystem.
- All supported versions of the collation protocol message.
- All supported versions of the validation protocol message.
\ No newline at end of file
diff --git a/doc/polkadot_node_network_protocol/macro.our_view.html b/doc/polkadot_node_network_protocol/macro.our_view.html
index badf342ff4c4..681ccb1a0133 100644
--- a/doc/polkadot_node_network_protocol/macro.our_view.html
+++ b/doc/polkadot_node_network_protocol/macro.our_view.html
@@ -1,7 +1,7 @@
our_view in polkadot_node_network_protocol - Rust macro_rules! our_view {
( $( $hash:expr ),* $(,)? ) => { ... };
}
Expand description
Construct a new OurView
with the given chain heads, finalized number 0 and disabled
-[jaeger::Span
]’s.
+jaeger::Span
’s.
NOTE: Use for tests only.
Example
let our_view = our_view![Hash::repeat_byte(1), Hash::repeat_byte(2)];
diff --git a/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html b/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html
index 21cb286c6631..44fdef89165f 100644
--- a/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html
+++ b/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html
@@ -114,8 +114,8 @@ Safety
bytes consumed. Read more§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
index 492d3c5d0b9f..984d7e527ccc 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
@@ -1,8 +1,8 @@
AvailableDataFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum AvailableDataFetchingResponse {
- AvailableData(AvailableData),
+ AvailableData(AvailableData),
NoSuchData,
}
Expand description
Receive a requested available data.
-Variants§
§AvailableData(AvailableData)
The requested data.
+Variants§
§AvailableData(AvailableData)
The requested data.
§NoSuchData
Node was not in possession of the requested data.
Trait Implementations§
source§impl Clone for AvailableDataFetchingResponse
source§fn clone(&self) -> AvailableDataFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Decode for AvailableDataFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
@@ -15,7 +15,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
source§impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
§impl RefUnwindSafe for AvailableDataFetchingResponse
§impl Send for AvailableDataFetchingResponse
§impl Sync for AvailableDataFetchingResponse
§impl Unpin for AvailableDataFetchingResponse
§impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
source§impl<T> Any for Twhere
+ F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
source§fn from(x: Option<AvailableData>) -> Self
Converts to this type from the input type.source§impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
§impl RefUnwindSafe for AvailableDataFetchingResponse
§impl Send for AvailableDataFetchingResponse
§impl Sync for AvailableDataFetchingResponse
§impl Unpin for AvailableDataFetchingResponse
§impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
index 934f3e44b005..042ed93c16cb 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
index a827ac5ded91..dce9613d790f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
@@ -1,7 +1,7 @@
CollationFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum CollationFetchingResponse {
- Collation(CandidateReceipt, PoV),
+ Collation(CandidateReceipt, PoV),
}
Expand description
Responses as sent by collators.
-Variants§
§Collation(CandidateReceipt, PoV)
Deliver requested collation.
+Variants§
Trait Implementations§
source§impl Clone for CollationFetchingResponse
source§fn clone(&self) -> CollationFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollationFetchingResponse
source§impl Decode for CollationFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -29,8 +29,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
index 8d5c7e2d69bd..234c66d6fcec 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
@@ -30,8 +30,8 @@
input: &mut &[u8]
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+bytes consumed. Read more
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
index 7342f58acd2f..0cd9b4b480ff 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
@@ -1,8 +1,8 @@
PoVFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum PoVFetchingResponse {
- PoV(PoV),
+ PoV(PoV),
NoSuchPoV,
}
Expand description
Responses to PoVFetchingRequest
.
-Variants§
§PoV(PoV)
Deliver requested PoV.
+Variants§
Trait Implementations§
source§impl Clone for PoVFetchingResponse
source§fn clone(&self) -> PoVFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for PoVFetchingResponse
source§impl Decode for PoVFetchingResponse
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
index b8b0a9017b93..16cb01151d48 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
@@ -1,10 +1,10 @@
StatementFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
-Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/executor_intf/fn.params_to_wasmtime_semantics.html b/doc/polkadot_node_core_pvf_common/executor_intf/fn.params_to_wasmtime_semantics.html
index bc91bceef829..1be4b6c87e7b 100644
--- a/doc/polkadot_node_core_pvf_common/executor_intf/fn.params_to_wasmtime_semantics.html
+++ b/doc/polkadot_node_core_pvf_common/executor_intf/fn.params_to_wasmtime_semantics.html
@@ -1,3 +1,3 @@
params_to_wasmtime_semantics in polkadot_node_core_pvf_common::executor_intf - Rust pub fn params_to_wasmtime_semantics(
- par: &ExecutorParams
+ par: &ExecutorParams
) -> Result<Semantics, String>
\ No newline at end of file
diff --git a/doc/polkadot_node_core_pvf_common/executor_intf/struct.Executor.html b/doc/polkadot_node_core_pvf_common/executor_intf/struct.Executor.html
index b6db9e78097e..81769eb280c2 100644
--- a/doc/polkadot_node_core_pvf_common/executor_intf/struct.Executor.html
+++ b/doc/polkadot_node_core_pvf_common/executor_intf/struct.Executor.html
@@ -1,6 +1,6 @@
Executor in polkadot_node_core_pvf_common::executor_intf - Rust pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is
specific to that worker.
-Implementations§
Implementations§
source§impl Executor
sourcepub fn new(params: ExecutorParams) -> Result<Self, String>
sourcepub unsafe fn execute(
&self,
compiled_artifact_blob: &[u8],
params: &[u8]
diff --git a/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html b/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html
index 3674fa553105..c4fd368a3d93 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html
index 4344eb33b93b..65e540c4f665 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html
index a56d6fa4f518..e0c2ca3f3148 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html
index b46db2940630..8d2e8b0a6787 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html b/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
index b34d04342137..92c1daab7888 100644
--- a/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
+++ b/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
@@ -3,13 +3,13 @@
Should be cheap to clone.
Implementations§
source§impl PvfPrepData
sourcepub fn from_code(
code: Vec<u8>,
- executor_params: ExecutorParams,
+ executor_params: ExecutorParams,
prep_timeout: Duration,
prep_kind: PrepareJobKind
) -> Self
Returns an instance of the PVF out of the given PVF code and executor params.
sourcepub fn code_hash(&self) -> ValidationCodeHash
Returns validation code hash for the PVF
sourcepub fn executor_params(&self) -> Arc<ExecutorParams>
Returns executor params
+sourcepub fn executor_params(&self) -> Arc<ExecutorParams>
Returns executor params
sourcepub fn prep_timeout(&self) -> Duration
Returns preparation timeout.
sourcepub fn prep_kind(&self) -> PrepareJobKind
Returns preparation kind.
sourcepub fn from_discriminator_and_timeout(num: u32, timeout: Duration) -> Self
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html b/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
index b2e1f8b3299f..62ed9977e498 100644
--- a/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
+++ b/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
@@ -1,6 +1,6 @@
-Executor in polkadot_node_core_pvf_execute_worker - Rust pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is
+
Executor in polkadot_node_core_pvf_execute_worker - Rust pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is
specific to that worker.
-Implementations§
Implementations§
pub unsafe fn create_runtime_from_bytes(
+
sourcepub unsafe fn create_runtime_from_bytes(
&self,
compiled_artifact_blob: &[u8]
) -> Result<WasmtimeRuntime, WasmError>
Constructs the runtime for the given PVF, given the artifact bytes.
@@ -24,7 +24,7 @@ Safety
was not modified,
Failure to adhere to these requirements might lead to crashes and arbitrary code execution.
-Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Executor
§impl Send for Executor
§impl Sync for Executor
§impl Unpin for Executor
§impl UnwindSafe for Executor
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Executor
§impl Send for Executor
§impl Sync for Executor
§impl Unpin for Executor
§impl UnwindSafe for Executor
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
index c003bd000e99..88f20cac103a 100644
--- a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
+++ b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
@@ -1,6 +1,6 @@
prepare in polkadot_node_core_pvf_prepare_worker - Rust Function polkadot_node_core_pvf_prepare_worker::prepare
source · pub fn prepare(
blob: RuntimeBlob,
- executor_params: &ExecutorParams
+ executor_params: &ExecutorParams
) -> Result<Vec<u8>, WasmError>
Expand description
Runs preparation on the given runtime blob. If successful, it returns a serialized compiled
artifact which can then be used to pass into Executor::execute
after writing it to the disk.
\ No newline at end of file
diff --git a/doc/polkadot_node_jaeger/enum.Span.html b/doc/polkadot_node_jaeger/enum.Span.html
index 462050e4f9ca..b86b4e7e3fbf 100644
--- a/doc/polkadot_node_jaeger/enum.Span.html
+++ b/doc/polkadot_node_jaeger/enum.Span.html
@@ -19,9 +19,9 @@
sourcepub fn with_para_id(self, para_id: ParaId) -> Self
Attach a para-id to the span.
sourcepub fn with_stage(self, stage: Stage) -> Self
Attach a candidate stage.
Should always come with a CandidateHash
.
-sourcepub fn with_validator_index(self, validator: ValidatorIndex) -> Self
sourcepub fn with_chunk_index(self, chunk_index: u32) -> Self
sourcepub fn with_relay_parent(self, relay_parent: Hash) -> Self
sourcepub fn with_claimed_validator_index(
+
sourcepub fn with_validator_index(self, validator: ValidatorIndex) -> Self
sourcepub fn with_chunk_index(self, chunk_index: u32) -> Self
sourcepub fn with_relay_parent(self, relay_parent: Hash) -> Self
sourcepub fn with_claimed_validator_index(
self,
- claimed_validator_index: ValidatorIndex
+ claimed_validator_index: ValidatorIndex
) -> Self
sourcepub fn with_pov(self, pov: &PoV) -> Self
sourcepub fn with_int_tag(self, tag: &'static str, i: i64) -> Self
Add an additional int tag to the span without consuming.
Should be used sparingly, introduction of new types is preferred.
sourcepub fn with_uint_tag(self, tag: &'static str, u: u64) -> Self
sourcepub fn with_string_fmt_debug_tag<V: Debug>(
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html b/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html
index b07cfa7d033b..516e17374d29 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html
@@ -1,18 +1,18 @@
GridNeighbors in polkadot_node_network_protocol::grid_topology - Rust pub struct GridNeighbors {
pub peers_x: HashSet<PeerId>,
- pub validator_indices_x: HashSet<ValidatorIndex>,
+ pub validator_indices_x: HashSet<ValidatorIndex>,
pub peers_y: HashSet<PeerId>,
- pub validator_indices_y: HashSet<ValidatorIndex>,
+ pub validator_indices_y: HashSet<ValidatorIndex>,
}
Expand description
Information about the grid neighbors for a particular node in the topology.
Fields§
§peers_x: HashSet<PeerId>
Represent peers in the X axis
-§validator_indices_x: HashSet<ValidatorIndex>
Represent validators in the X axis
+§validator_indices_x: HashSet<ValidatorIndex>
Represent validators in the X axis
§peers_y: HashSet<PeerId>
Represent peers in the Y axis
-§validator_indices_y: HashSet<ValidatorIndex>
Represent validators in the Y axis
+§validator_indices_y: HashSet<ValidatorIndex>
Represent validators in the Y axis
Implementations§
source§impl GridNeighbors
sourcepub fn empty() -> Self
Utility function for creating an empty set of grid neighbors.
Useful for testing.
sourcepub fn required_routing_by_index(
&self,
- originator: ValidatorIndex,
+ originator: ValidatorIndex,
local: bool
) -> RequiredRouting
Given the originator of a message as a validator index, indicates the part of the topology
we’re meant to send the message to.
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html
index a68817532bd9..dc3569f2deb9 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html
@@ -14,7 +14,7 @@
&mut self,
session_index: SessionIndex,
topology: SessionGridTopology,
- local_index: Option<ValidatorIndex>
+ local_index: Option<ValidatorIndex>
)Update the current topology preserving the previous one
sourcepub fn get_current_topology(&self) -> &SessionGridTopologyEntry
Returns a current grid topology
sourcepub fn get_current_topology_mut(&mut self) -> &mut SessionGridTopologyEntry
Access the current grid topology mutably. Dangerous and intended
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html
index 40116bbec26e..9efea08db984 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html
@@ -9,7 +9,7 @@
&mut self,
session: SessionIndex,
topology: SessionGridTopology,
- local_index: Option<ValidatorIndex>
+ local_index: Option<ValidatorIndex>
)
Insert a new topology, no-op if already present.
Trait Implementations§
source§impl Default for SessionGridTopologies
source§fn default() -> SessionGridTopologies
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for SessionGridTopologies
§impl Send for SessionGridTopologies
§impl Sync for SessionGridTopologies
§impl Unpin for SessionGridTopologies
§impl UnwindSafe for SessionGridTopologies
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
index 2638700bc176..731086881dd3 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
@@ -5,7 +5,7 @@
) -> Self
Create a new session grid topology.
sourcepub fn compute_grid_neighbors_for(
&self,
- v: ValidatorIndex
+ v: ValidatorIndex
) -> Option<GridNeighbors>
Produces the outgoing routing logic for a particular peer.
Returns None
if the validator index is out of bounds.
Trait Implementations§
source§impl Clone for SessionGridTopology
source§fn clone(&self) -> SessionGridTopology
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SessionGridTopology
source§impl Default for SessionGridTopology
source§fn default() -> SessionGridTopology
Returns the “default value” for a type. Read moresource§impl PartialEq<SessionGridTopology> for SessionGridTopology
source§fn eq(&self, other: &SessionGridTopology) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html b/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
index 88b5b7b9f211..895cd36e1b6f 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
@@ -1,10 +1,10 @@
TopologyPeerInfo in polkadot_node_network_protocol::grid_topology - Rust pub struct TopologyPeerInfo {
pub peer_ids: Vec<PeerId>,
- pub validator_index: ValidatorIndex,
+ pub validator_index: ValidatorIndex,
pub discovery_id: AuthorityDiscoveryId,
}
Expand description
Information about a peer in the gossip topology for a session.
Fields§
§peer_ids: Vec<PeerId>
The validator’s known peer IDs.
-§validator_index: ValidatorIndex
The index of the validator in the discovery keys of the corresponding
+
§validator_index: ValidatorIndex
The index of the validator in the discovery keys of the corresponding
SessionInfo
. This can extend beyond the set of active parachain validators.
§discovery_id: AuthorityDiscoveryId
The authority discovery public key of the validator in the corresponding
SessionInfo
.
diff --git a/doc/polkadot_node_network_protocol/index.html b/doc/polkadot_node_network_protocol/index.html
index 1e119a40bd23..9912f88ec2cc 100644
--- a/doc/polkadot_node_network_protocol/index.html
+++ b/doc/polkadot_node_network_protocol/index.html
@@ -5,5 +5,5 @@
The basic operation of the 2D grid topology is that:Peer-sets and protocols used for parachains.
All peersets and protocols used for parachains. Request/response protocols used in Polkadot.
Overview over request/responses as used in Polkadot
. v1 notification protocol types. Macros
- Construct a new
OurView
with the given chain heads, finalized number 0 and disabled
-[jaeger::Span
]’s. - Construct a new view with the given chain heads and finalized number 0.
Structs
- Specialized wrapper around
View
. - Identifier of a peer of the network.
- Description of a reputation adjustment for a node.
- A succinct representation of a peer’s view. This consists of a bounded amount of chain heads
+
jaeger::Span
’s. - Construct a new view with the given chain heads and finalized number 0.
Structs
- Specialized wrapper around
View
. - Identifier of a peer of the network.
- Description of a reputation adjustment for a node.
- A succinct representation of a peer’s view. This consists of a bounded amount of chain heads
and the highest known finalized block number.
- An error indicating that this the over-arching message type had the wrong variant
Enums
- When sending a request, what to do on a disconnected recipient.
- The advertised role of a node.
- Unified annoyance cost and good behavior benefits.
- A protocol-versioned type.
Constants
- The minimum amount of peers to send gossip messages to.
Type Definitions
- Version-annotated messages used by the approval distribution subsystem.
- Version-annotated messages used by the bitfield distribution subsystem.
- Version-annotated messages used by the bitfield distribution subsystem.
- Version-annotated messages used by the gossip-support subsystem (this is void).
- Version-annotated messages used by the statement distribution subsystem.
- All supported versions of the collation protocol message.
- All supported versions of the validation protocol message.
\ No newline at end of file
diff --git a/doc/polkadot_node_network_protocol/macro.our_view.html b/doc/polkadot_node_network_protocol/macro.our_view.html
index badf342ff4c4..681ccb1a0133 100644
--- a/doc/polkadot_node_network_protocol/macro.our_view.html
+++ b/doc/polkadot_node_network_protocol/macro.our_view.html
@@ -1,7 +1,7 @@
our_view in polkadot_node_network_protocol - Rust macro_rules! our_view {
( $( $hash:expr ),* $(,)? ) => { ... };
}
Expand description
Construct a new OurView
with the given chain heads, finalized number 0 and disabled
-[jaeger::Span
]’s.
+jaeger::Span
’s.
NOTE: Use for tests only.
Example
let our_view = our_view![Hash::repeat_byte(1), Hash::repeat_byte(2)];
diff --git a/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html b/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html
index 21cb286c6631..44fdef89165f 100644
--- a/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html
+++ b/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html
@@ -114,8 +114,8 @@ Safety
bytes consumed. Read more§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
index 492d3c5d0b9f..984d7e527ccc 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
@@ -1,8 +1,8 @@
AvailableDataFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum AvailableDataFetchingResponse {
- AvailableData(AvailableData),
+ AvailableData(AvailableData),
NoSuchData,
}
Expand description
Receive a requested available data.
-Variants§
§AvailableData(AvailableData)
The requested data.
+Variants§
§AvailableData(AvailableData)
The requested data.
§NoSuchData
Node was not in possession of the requested data.
Trait Implementations§
source§impl Clone for AvailableDataFetchingResponse
source§fn clone(&self) -> AvailableDataFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Decode for AvailableDataFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
@@ -15,7 +15,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
source§impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
§impl RefUnwindSafe for AvailableDataFetchingResponse
§impl Send for AvailableDataFetchingResponse
§impl Sync for AvailableDataFetchingResponse
§impl Unpin for AvailableDataFetchingResponse
§impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
source§impl<T> Any for Twhere
+ F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
source§fn from(x: Option<AvailableData>) -> Self
Converts to this type from the input type.source§impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
§impl RefUnwindSafe for AvailableDataFetchingResponse
§impl Send for AvailableDataFetchingResponse
§impl Sync for AvailableDataFetchingResponse
§impl Unpin for AvailableDataFetchingResponse
§impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
index 934f3e44b005..042ed93c16cb 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
index a827ac5ded91..dce9613d790f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
@@ -1,7 +1,7 @@
CollationFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum CollationFetchingResponse {
- Collation(CandidateReceipt, PoV),
+ Collation(CandidateReceipt, PoV),
}
Expand description
Responses as sent by collators.
-Variants§
§Collation(CandidateReceipt, PoV)
Deliver requested collation.
+Variants§
Trait Implementations§
source§impl Clone for CollationFetchingResponse
source§fn clone(&self) -> CollationFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollationFetchingResponse
source§impl Decode for CollationFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -29,8 +29,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
index 8d5c7e2d69bd..234c66d6fcec 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
@@ -30,8 +30,8 @@
input: &mut &[u8]
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+bytes consumed. Read more
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
index 7342f58acd2f..0cd9b4b480ff 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
@@ -1,8 +1,8 @@
PoVFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum PoVFetchingResponse {
- PoV(PoV),
+ PoV(PoV),
NoSuchPoV,
}
Expand description
Responses to PoVFetchingRequest
.
-Variants§
§PoV(PoV)
Deliver requested PoV.
+Variants§
Trait Implementations§
source§impl Clone for PoVFetchingResponse
source§fn clone(&self) -> PoVFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for PoVFetchingResponse
source§impl Decode for PoVFetchingResponse
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
index b8b0a9017b93..16cb01151d48 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
@@ -1,10 +1,10 @@
StatementFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
-Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub fn params_to_wasmtime_semantics(
- par: &ExecutorParams
+ par: &ExecutorParams
) -> Result<Semantics, String>
pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is specific to that worker.
-Implementations§
Implementations§
source§impl Executor
impl Executor
pub fn new(params: ExecutorParams) -> Result<Self, String>
sourcepub unsafe fn execute(
&self,
compiled_artifact_blob: &[u8],
params: &[u8]
diff --git a/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html b/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html
index 3674fa553105..c4fd368a3d93 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
pub unsafe fn execute( &self, compiled_artifact_blob: &[u8], params: &[u8] diff --git a/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html b/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html index 3674fa553105..c4fd368a3d93 100644 --- a/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html +++ b/doc/polkadot_node_core_pvf_common/prepare/enum.PrepareJobKind.html @@ -31,8 +31,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html
index 4344eb33b93b..65e540c4f665 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html index 4344eb33b93b..65e540c4f665 100644 --- a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html +++ b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryAllocationStats.html @@ -31,8 +31,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html
index a56d6fa4f518..e0c2ca3f3148 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html
@@ -32,8 +32,8 @@
) -> Result<T, Error>
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html index a56d6fa4f518..e0c2ca3f3148 100644 --- a/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html +++ b/doc/polkadot_node_core_pvf_common/prepare/struct.MemoryStats.html @@ -32,8 +32,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html
index b46db2940630..8d2e8b0a6787 100644
--- a/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html
+++ b/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where diff --git a/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html b/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html index b46db2940630..8d2e8b0a6787 100644 --- a/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html +++ b/doc/polkadot_node_core_pvf_common/prepare/struct.PrepareStats.html @@ -31,8 +31,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html b/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
index b34d04342137..92c1daab7888 100644
--- a/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
+++ b/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
@@ -3,13 +3,13 @@
Should be cheap to clone.
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html b/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
index b34d04342137..92c1daab7888 100644
--- a/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
+++ b/doc/polkadot_node_core_pvf_common/pvf/struct.PvfPrepData.html
@@ -3,13 +3,13 @@
Should be cheap to clone.
Implementations§
source§impl PvfPrepData
impl PvfPrepData
sourcepub fn from_code(
code: Vec<u8>,
- executor_params: ExecutorParams,
+ executor_params: ExecutorParams,
prep_timeout: Duration,
prep_kind: PrepareJobKind
) -> Self
pub fn from_code( code: Vec<u8>, - executor_params: ExecutorParams, + executor_params: ExecutorParams, prep_timeout: Duration, prep_kind: PrepareJobKind ) -> Self
Returns an instance of the PVF out of the given PVF code and executor params.
sourcepub fn code_hash(&self) -> ValidationCodeHash
pub fn code_hash(&self) -> ValidationCodeHash
Returns validation code hash for the PVF
sourcepub fn executor_params(&self) -> Arc<ExecutorParams>
pub fn executor_params(&self) -> Arc<ExecutorParams>
Returns executor params
+sourcepub fn executor_params(&self) -> Arc<ExecutorParams>
pub fn executor_params(&self) -> Arc<ExecutorParams>
Returns executor params
sourcepub fn prep_timeout(&self) -> Duration
pub fn prep_timeout(&self) -> Duration
Returns preparation timeout.
sourcepub fn prep_kind(&self) -> PrepareJobKind
pub fn prep_kind(&self) -> PrepareJobKind
Returns preparation kind.
sourcepub fn from_discriminator_and_timeout(num: u32, timeout: Duration) -> Self
pub fn from_discriminator_and_timeout(num: u32, timeout: Duration) -> Self
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html b/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
index b2e1f8b3299f..62ed9977e498 100644
--- a/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
+++ b/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
@@ -1,6 +1,6 @@
-Executor in polkadot_node_core_pvf_execute_worker - Rust pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is
+
Executor in polkadot_node_core_pvf_execute_worker - Rust pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is
specific to that worker.
-Implementations§
Implementations§
pub unsafe fn create_runtime_from_bytes(
+
sourcepub unsafe fn create_runtime_from_bytes(
&self,
compiled_artifact_blob: &[u8]
) -> Result<WasmtimeRuntime, WasmError>
Constructs the runtime for the given PVF, given the artifact bytes.
@@ -24,7 +24,7 @@ Safety
was not modified,
Failure to adhere to these requirements might lead to crashes and arbitrary code execution.
-Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Executor
§impl Send for Executor
§impl Sync for Executor
§impl Unpin for Executor
§impl UnwindSafe for Executor
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Executor
§impl Send for Executor
§impl Sync for Executor
§impl Unpin for Executor
§impl UnwindSafe for Executor
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
index c003bd000e99..88f20cac103a 100644
--- a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
+++ b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
@@ -1,6 +1,6 @@
prepare in polkadot_node_core_pvf_prepare_worker - Rust Function polkadot_node_core_pvf_prepare_worker::prepare
source · pub fn prepare(
blob: RuntimeBlob,
- executor_params: &ExecutorParams
+ executor_params: &ExecutorParams
) -> Result<Vec<u8>, WasmError>
Expand description
Runs preparation on the given runtime blob. If successful, it returns a serialized compiled
artifact which can then be used to pass into Executor::execute
after writing it to the disk.
\ No newline at end of file
diff --git a/doc/polkadot_node_jaeger/enum.Span.html b/doc/polkadot_node_jaeger/enum.Span.html
index 462050e4f9ca..b86b4e7e3fbf 100644
--- a/doc/polkadot_node_jaeger/enum.Span.html
+++ b/doc/polkadot_node_jaeger/enum.Span.html
@@ -19,9 +19,9 @@
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html b/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
index b2e1f8b3299f..62ed9977e498 100644
--- a/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
+++ b/doc/polkadot_node_core_pvf_execute_worker/struct.Executor.html
@@ -1,6 +1,6 @@
-Executor in polkadot_node_core_pvf_execute_worker - Rust pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is
+
Executor in polkadot_node_core_pvf_execute_worker - Rust pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is
specific to that worker.
-Implementations§
Implementations§
pub unsafe fn create_runtime_from_bytes(
+
sourcepub unsafe fn create_runtime_from_bytes(
&self,
compiled_artifact_blob: &[u8]
) -> Result<WasmtimeRuntime, WasmError>
Constructs the runtime for the given PVF, given the artifact bytes.
@@ -24,7 +24,7 @@ Safety
was not modified,
Failure to adhere to these requirements might lead to crashes and arbitrary code execution.
-Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Executor
§impl Send for Executor
§impl Sync for Executor
§impl Unpin for Executor
§impl UnwindSafe for Executor
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Executor
§impl Send for Executor
§impl Sync for Executor
§impl Unpin for Executor
§impl UnwindSafe for Executor
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
index c003bd000e99..88f20cac103a 100644
--- a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
+++ b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
@@ -1,6 +1,6 @@
prepare in polkadot_node_core_pvf_prepare_worker - Rust Function polkadot_node_core_pvf_prepare_worker::prepare
source · pub fn prepare(
blob: RuntimeBlob,
- executor_params: &ExecutorParams
+ executor_params: &ExecutorParams
) -> Result<Vec<u8>, WasmError>
Expand description
Runs preparation on the given runtime blob. If successful, it returns a serialized compiled
artifact which can then be used to pass into Executor::execute
after writing it to the disk.
\ No newline at end of file
diff --git a/doc/polkadot_node_jaeger/enum.Span.html b/doc/polkadot_node_jaeger/enum.Span.html
index 462050e4f9ca..b86b4e7e3fbf 100644
--- a/doc/polkadot_node_jaeger/enum.Span.html
+++ b/doc/polkadot_node_jaeger/enum.Span.html
@@ -19,9 +19,9 @@
pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is +
pub struct Executor { /* private fields */ }
Expand description
A WASM executor with a given configuration. It is instantiated once per execute worker and is specific to that worker.
-Implementations§
Implementations§
pub unsafe fn create_runtime_from_bytes(
+
pub unsafe fn create_runtime_from_bytes( +
sourcepub unsafe fn create_runtime_from_bytes(
&self,
compiled_artifact_blob: &[u8]
) -> Result<WasmtimeRuntime, WasmError>
pub unsafe fn create_runtime_from_bytes( &self, compiled_artifact_blob: &[u8] ) -> Result<WasmtimeRuntime, WasmError>
Constructs the runtime for the given PVF, given the artifact bytes.
@@ -24,7 +24,7 @@Safety
Failure to adhere to these requirements might lead to crashes and arbitrary code execution.
-Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnwindSafe for Executor
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnwindSafe for Executor
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
index c003bd000e99..88f20cac103a 100644
--- a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
+++ b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
@@ -1,6 +1,6 @@
prepare in polkadot_node_core_pvf_prepare_worker - Rust Function polkadot_node_core_pvf_prepare_worker::prepare
source · pub fn prepare(
blob: RuntimeBlob,
- executor_params: &ExecutorParams
+ executor_params: &ExecutorParams
) -> Result<Vec<u8>, WasmError>
Expand description
Runs preparation on the given runtime blob. If successful, it returns a serialized compiled
artifact which can then be used to pass into Executor::execute
after writing it to the disk.
\ No newline at end of file
diff --git a/doc/polkadot_node_jaeger/enum.Span.html b/doc/polkadot_node_jaeger/enum.Span.html
index 462050e4f9ca..b86b4e7e3fbf 100644
--- a/doc/polkadot_node_jaeger/enum.Span.html
+++ b/doc/polkadot_node_jaeger/enum.Span.html
@@ -19,9 +19,9 @@
impl<T> Borrow<T> for Twhere
diff --git a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
index c003bd000e99..88f20cac103a 100644
--- a/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
+++ b/doc/polkadot_node_core_pvf_prepare_worker/fn.prepare.html
@@ -1,6 +1,6 @@
prepare in polkadot_node_core_pvf_prepare_worker - Rust Function polkadot_node_core_pvf_prepare_worker::prepare
source · pub fn prepare(
blob: RuntimeBlob,
- executor_params: &ExecutorParams
+ executor_params: &ExecutorParams
) -> Result<Vec<u8>, WasmError>
Expand description
Runs preparation on the given runtime blob. If successful, it returns a serialized compiled
artifact which can then be used to pass into Executor::execute
after writing it to the disk.
\ No newline at end of file
diff --git a/doc/polkadot_node_jaeger/enum.Span.html b/doc/polkadot_node_jaeger/enum.Span.html
index 462050e4f9ca..b86b4e7e3fbf 100644
--- a/doc/polkadot_node_jaeger/enum.Span.html
+++ b/doc/polkadot_node_jaeger/enum.Span.html
@@ -19,9 +19,9 @@
Function polkadot_node_core_pvf_prepare_worker::prepare
source · pub fn prepare(
blob: RuntimeBlob,
- executor_params: &ExecutorParams
+ executor_params: &ExecutorParams
) -> Result<Vec<u8>, WasmError>
Expand description
Runs preparation on the given runtime blob. If successful, it returns a serialized compiled
artifact which can then be used to pass into Executor::execute
after writing it to the disk.
sourcepub fn with_para_id(self, para_id: ParaId) -> Self
pub fn with_para_id(self, para_id: ParaId) -> Self
Attach a para-id to the span.
sourcepub fn with_stage(self, stage: Stage) -> Self
pub fn with_stage(self, stage: Stage) -> Self
Attach a candidate stage.
Should always come with a CandidateHash
.
pub fn with_validator_index(self, validator: ValidatorIndex) -> Self
pub fn with_chunk_index(self, chunk_index: u32) -> Self
pub fn with_relay_parent(self, relay_parent: Hash) -> Self
pub fn with_claimed_validator_index( +
pub fn with_validator_index(self, validator: ValidatorIndex) -> Self
pub fn with_chunk_index(self, chunk_index: u32) -> Self
pub fn with_relay_parent(self, relay_parent: Hash) -> Self
pub fn with_claimed_validator_index( self, - claimed_validator_index: ValidatorIndex + claimed_validator_index: ValidatorIndex ) -> Self
pub fn with_pov(self, pov: &PoV) -> Self
sourcepub fn with_int_tag(self, tag: &'static str, i: i64) -> Self
pub fn with_int_tag(self, tag: &'static str, i: i64) -> Self
Add an additional int tag to the span without consuming.
Should be used sparingly, introduction of new types is preferred.
pub fn with_uint_tag(self, tag: &'static str, u: u64) -> Self
pub fn with_string_fmt_debug_tag<V: Debug>(
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html b/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html
index b07cfa7d033b..516e17374d29 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.GridNeighbors.html
@@ -1,18 +1,18 @@
GridNeighbors in polkadot_node_network_protocol::grid_topology - Rust pub struct GridNeighbors {
pub peers_x: HashSet<PeerId>,
- pub validator_indices_x: HashSet<ValidatorIndex>,
+ pub validator_indices_x: HashSet<ValidatorIndex>,
pub peers_y: HashSet<PeerId>,
- pub validator_indices_y: HashSet<ValidatorIndex>,
+ pub validator_indices_y: HashSet<ValidatorIndex>,
}
Expand description
Information about the grid neighbors for a particular node in the topology.
Fields§
§peers_x: HashSet<PeerId>
Represent peers in the X axis
-§validator_indices_x: HashSet<ValidatorIndex>
Represent validators in the X axis
+§validator_indices_x: HashSet<ValidatorIndex>
Represent validators in the X axis
§peers_y: HashSet<PeerId>
Represent peers in the Y axis
-§validator_indices_y: HashSet<ValidatorIndex>
Represent validators in the Y axis
+§validator_indices_y: HashSet<ValidatorIndex>
Represent validators in the Y axis
Implementations§
source§impl GridNeighbors
sourcepub fn empty() -> Self
Utility function for creating an empty set of grid neighbors.
Useful for testing.
sourcepub fn required_routing_by_index(
&self,
- originator: ValidatorIndex,
+ originator: ValidatorIndex,
local: bool
) -> RequiredRouting
Given the originator of a message as a validator index, indicates the part of the topology
we’re meant to send the message to.
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html
index a68817532bd9..dc3569f2deb9 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html
@@ -14,7 +14,7 @@
&mut self,
session_index: SessionIndex,
topology: SessionGridTopology,
- local_index: Option<ValidatorIndex>
+ local_index: Option<ValidatorIndex>
)Update the current topology preserving the previous one
sourcepub fn get_current_topology(&self) -> &SessionGridTopologyEntry
Returns a current grid topology
sourcepub fn get_current_topology_mut(&mut self) -> &mut SessionGridTopologyEntry
Access the current grid topology mutably. Dangerous and intended
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html
index 40116bbec26e..9efea08db984 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html
@@ -9,7 +9,7 @@
&mut self,
session: SessionIndex,
topology: SessionGridTopology,
- local_index: Option<ValidatorIndex>
+ local_index: Option<ValidatorIndex>
)
Insert a new topology, no-op if already present.
Trait Implementations§
source§impl Default for SessionGridTopologies
source§fn default() -> SessionGridTopologies
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for SessionGridTopologies
§impl Send for SessionGridTopologies
§impl Sync for SessionGridTopologies
§impl Unpin for SessionGridTopologies
§impl UnwindSafe for SessionGridTopologies
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
index 2638700bc176..731086881dd3 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
@@ -5,7 +5,7 @@
) -> Self
Create a new session grid topology.
sourcepub fn compute_grid_neighbors_for(
&self,
- v: ValidatorIndex
+ v: ValidatorIndex
) -> Option<GridNeighbors>
Produces the outgoing routing logic for a particular peer.
Returns None
if the validator index is out of bounds.
Trait Implementations§
source§impl Clone for SessionGridTopology
source§fn clone(&self) -> SessionGridTopology
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SessionGridTopology
source§impl Default for SessionGridTopology
source§fn default() -> SessionGridTopology
Returns the “default value” for a type. Read moresource§impl PartialEq<SessionGridTopology> for SessionGridTopology
source§fn eq(&self, other: &SessionGridTopology) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html b/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
index 88b5b7b9f211..895cd36e1b6f 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
@@ -1,10 +1,10 @@
TopologyPeerInfo in polkadot_node_network_protocol::grid_topology - Rust pub struct TopologyPeerInfo {
pub peer_ids: Vec<PeerId>,
- pub validator_index: ValidatorIndex,
+ pub validator_index: ValidatorIndex,
pub discovery_id: AuthorityDiscoveryId,
}
Expand description
Information about a peer in the gossip topology for a session.
Fields§
§peer_ids: Vec<PeerId>
The validator’s known peer IDs.
-§validator_index: ValidatorIndex
The index of the validator in the discovery keys of the corresponding
+
§validator_index: ValidatorIndex
The index of the validator in the discovery keys of the corresponding
SessionInfo
. This can extend beyond the set of active parachain validators.
§discovery_id: AuthorityDiscoveryId
The authority discovery public key of the validator in the corresponding
SessionInfo
.
diff --git a/doc/polkadot_node_network_protocol/index.html b/doc/polkadot_node_network_protocol/index.html
index 1e119a40bd23..9912f88ec2cc 100644
--- a/doc/polkadot_node_network_protocol/index.html
+++ b/doc/polkadot_node_network_protocol/index.html
@@ -5,5 +5,5 @@
The basic operation of the 2D grid topology is that:Peer-sets and protocols used for parachains.
All peersets and protocols used for parachains. Request/response protocols used in Polkadot.
Overview over request/responses as used in Polkadot
. v1 notification protocol types. Macros
- Construct a new
OurView
with the given chain heads, finalized number 0 and disabled
-[jaeger::Span
]’s. - Construct a new view with the given chain heads and finalized number 0.
Structs
- Specialized wrapper around
View
. - Identifier of a peer of the network.
- Description of a reputation adjustment for a node.
- A succinct representation of a peer’s view. This consists of a bounded amount of chain heads
+
jaeger::Span
’s. - Construct a new view with the given chain heads and finalized number 0.
Structs
- Specialized wrapper around
View
. - Identifier of a peer of the network.
- Description of a reputation adjustment for a node.
- A succinct representation of a peer’s view. This consists of a bounded amount of chain heads
and the highest known finalized block number.
- An error indicating that this the over-arching message type had the wrong variant
Enums
- When sending a request, what to do on a disconnected recipient.
- The advertised role of a node.
- Unified annoyance cost and good behavior benefits.
- A protocol-versioned type.
Constants
- The minimum amount of peers to send gossip messages to.
Type Definitions
- Version-annotated messages used by the approval distribution subsystem.
- Version-annotated messages used by the bitfield distribution subsystem.
- Version-annotated messages used by the bitfield distribution subsystem.
- Version-annotated messages used by the gossip-support subsystem (this is void).
- Version-annotated messages used by the statement distribution subsystem.
- All supported versions of the collation protocol message.
- All supported versions of the validation protocol message.
\ No newline at end of file
diff --git a/doc/polkadot_node_network_protocol/macro.our_view.html b/doc/polkadot_node_network_protocol/macro.our_view.html
index badf342ff4c4..681ccb1a0133 100644
--- a/doc/polkadot_node_network_protocol/macro.our_view.html
+++ b/doc/polkadot_node_network_protocol/macro.our_view.html
@@ -1,7 +1,7 @@
our_view in polkadot_node_network_protocol - Rust macro_rules! our_view {
( $( $hash:expr ),* $(,)? ) => { ... };
}
Expand description
Construct a new OurView
with the given chain heads, finalized number 0 and disabled
-[jaeger::Span
]’s.
+jaeger::Span
’s.
NOTE: Use for tests only.
Example
let our_view = our_view![Hash::repeat_byte(1), Hash::repeat_byte(2)];
diff --git a/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html b/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html
index 21cb286c6631..44fdef89165f 100644
--- a/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html
+++ b/doc/polkadot_node_network_protocol/request_response/network/struct.Roles.html
@@ -114,8 +114,8 @@ Safety
bytes consumed. Read more§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
index 492d3c5d0b9f..984d7e527ccc 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
@@ -1,8 +1,8 @@
AvailableDataFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum AvailableDataFetchingResponse {
- AvailableData(AvailableData),
+ AvailableData(AvailableData),
NoSuchData,
}
Expand description
Receive a requested available data.
-Variants§
§AvailableData(AvailableData)
The requested data.
+Variants§
§AvailableData(AvailableData)
The requested data.
§NoSuchData
Node was not in possession of the requested data.
Trait Implementations§
source§impl Clone for AvailableDataFetchingResponse
source§fn clone(&self) -> AvailableDataFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Decode for AvailableDataFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
@@ -15,7 +15,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
source§impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
§impl RefUnwindSafe for AvailableDataFetchingResponse
§impl Send for AvailableDataFetchingResponse
§impl Sync for AvailableDataFetchingResponse
§impl Unpin for AvailableDataFetchingResponse
§impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
source§impl<T> Any for Twhere
+ F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
source§fn from(x: Option<AvailableData>) -> Self
Converts to this type from the input type.source§impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
§impl RefUnwindSafe for AvailableDataFetchingResponse
§impl Send for AvailableDataFetchingResponse
§impl Sync for AvailableDataFetchingResponse
§impl Unpin for AvailableDataFetchingResponse
§impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
index 934f3e44b005..042ed93c16cb 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
index a827ac5ded91..dce9613d790f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
@@ -1,7 +1,7 @@
CollationFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum CollationFetchingResponse {
- Collation(CandidateReceipt, PoV),
+ Collation(CandidateReceipt, PoV),
}
Expand description
Responses as sent by collators.
-Variants§
§Collation(CandidateReceipt, PoV)
Deliver requested collation.
+Variants§
Trait Implementations§
source§impl Clone for CollationFetchingResponse
source§fn clone(&self) -> CollationFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollationFetchingResponse
source§impl Decode for CollationFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -29,8 +29,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
index 8d5c7e2d69bd..234c66d6fcec 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
@@ -30,8 +30,8 @@
input: &mut &[u8]
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+bytes consumed. Read more
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
index 7342f58acd2f..0cd9b4b480ff 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
@@ -1,8 +1,8 @@
PoVFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum PoVFetchingResponse {
- PoV(PoV),
+ PoV(PoV),
NoSuchPoV,
}
Expand description
Responses to PoVFetchingRequest
.
-Variants§
§PoV(PoV)
Deliver requested PoV.
+Variants§
Trait Implementations§
source§impl Clone for PoVFetchingResponse
source§fn clone(&self) -> PoVFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for PoVFetchingResponse
source§impl Decode for PoVFetchingResponse
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
index b8b0a9017b93..16cb01151d48 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
@@ -1,10 +1,10 @@
StatementFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
-Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub struct GridNeighbors {
pub peers_x: HashSet<PeerId>,
- pub validator_indices_x: HashSet<ValidatorIndex>,
+ pub validator_indices_x: HashSet<ValidatorIndex>,
pub peers_y: HashSet<PeerId>,
- pub validator_indices_y: HashSet<ValidatorIndex>,
+ pub validator_indices_y: HashSet<ValidatorIndex>,
}
Expand description
Information about the grid neighbors for a particular node in the topology.
Fields§
§peers_x: HashSet<PeerId>
Represent peers in the X axis
-validator_indices_x: HashSet<ValidatorIndex>
Represent validators in the X axis
+validator_indices_x: HashSet<ValidatorIndex>
Represent validators in the X axis
peers_y: HashSet<PeerId>
Represent peers in the Y axis
-validator_indices_y: HashSet<ValidatorIndex>
Represent validators in the Y axis
+validator_indices_y: HashSet<ValidatorIndex>
Represent validators in the Y axis
Implementations§
source§impl GridNeighbors
impl GridNeighbors
sourcepub fn empty() -> Self
pub fn empty() -> Self
Utility function for creating an empty set of grid neighbors. Useful for testing.
sourcepub fn required_routing_by_index(
&self,
- originator: ValidatorIndex,
+ originator: ValidatorIndex,
local: bool
) -> RequiredRouting
pub fn required_routing_by_index( &self, - originator: ValidatorIndex, + originator: ValidatorIndex, local: bool ) -> RequiredRouting
Given the originator of a message as a validator index, indicates the part of the topology we’re meant to send the message to.
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html index a68817532bd9..dc3569f2deb9 100644 --- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html +++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionBoundGridTopologyStorage.html @@ -14,7 +14,7 @@ &mut self, session_index: SessionIndex, topology: SessionGridTopology, - local_index: Option<ValidatorIndex> + local_index: Option<ValidatorIndex> )Update the current topology preserving the previous one
sourcepub fn get_current_topology(&self) -> &SessionGridTopologyEntry
pub fn get_current_topology(&self) -> &SessionGridTopologyEntry
Returns a current grid topology
sourcepub fn get_current_topology_mut(&mut self) -> &mut SessionGridTopologyEntry
pub fn get_current_topology_mut(&mut self) -> &mut SessionGridTopologyEntry
Access the current grid topology mutably. Dangerous and intended diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html index 40116bbec26e..9efea08db984 100644 --- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html +++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopologies.html @@ -9,7 +9,7 @@ &mut self, session: SessionIndex, topology: SessionGridTopology, - local_index: Option<ValidatorIndex> + local_index: Option<ValidatorIndex> )
Insert a new topology, no-op if already present.
Trait Implementations§
source§impl Default for SessionGridTopologies
impl Default for SessionGridTopologies
source§fn default() -> SessionGridTopologies
fn default() -> SessionGridTopologies
Auto Trait Implementations§
impl RefUnwindSafe for SessionGridTopologies
impl Send for SessionGridTopologies
impl Sync for SessionGridTopologies
impl Unpin for SessionGridTopologies
impl UnwindSafe for SessionGridTopologies
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
index 2638700bc176..731086881dd3 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html
@@ -5,7 +5,7 @@
) -> Self
impl<T> Any for Twhere diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html index 2638700bc176..731086881dd3 100644 --- a/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html +++ b/doc/polkadot_node_network_protocol/grid_topology/struct.SessionGridTopology.html @@ -5,7 +5,7 @@ ) -> Self
Create a new session grid topology.
sourcepub fn compute_grid_neighbors_for(
&self,
- v: ValidatorIndex
+ v: ValidatorIndex
) -> Option<GridNeighbors>
pub fn compute_grid_neighbors_for( &self, - v: ValidatorIndex + v: ValidatorIndex ) -> Option<GridNeighbors>
Produces the outgoing routing logic for a particular peer.
Returns None
if the validator index is out of bounds.
Trait Implementations§
source§impl Clone for SessionGridTopology
impl Clone for SessionGridTopology
source§fn clone(&self) -> SessionGridTopology
fn clone(&self) -> SessionGridTopology
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionGridTopology
impl Debug for SessionGridTopology
source§impl Default for SessionGridTopology
impl Default for SessionGridTopology
source§fn default() -> SessionGridTopology
fn default() -> SessionGridTopology
source§impl PartialEq<SessionGridTopology> for SessionGridTopology
impl PartialEq<SessionGridTopology> for SessionGridTopology
source§fn eq(&self, other: &SessionGridTopology) -> bool
fn eq(&self, other: &SessionGridTopology) -> bool
self
and other
values to be equal, and is used
diff --git a/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html b/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
index 88b5b7b9f211..895cd36e1b6f 100644
--- a/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
+++ b/doc/polkadot_node_network_protocol/grid_topology/struct.TopologyPeerInfo.html
@@ -1,10 +1,10 @@
pub struct TopologyPeerInfo {
pub peer_ids: Vec<PeerId>,
- pub validator_index: ValidatorIndex,
+ pub validator_index: ValidatorIndex,
pub discovery_id: AuthorityDiscoveryId,
}
Expand description
Information about a peer in the gossip topology for a session.
Fields§
§peer_ids: Vec<PeerId>
The validator’s known peer IDs.
-validator_index: ValidatorIndex
The index of the validator in the discovery keys of the corresponding +
validator_index: ValidatorIndex
The index of the validator in the discovery keys of the corresponding
SessionInfo
. This can extend beyond the set of active parachain validators.
discovery_id: AuthorityDiscoveryId
The authority discovery public key of the validator in the corresponding
SessionInfo
.
Polkadot
.Macros
- Construct a new
OurView
with the given chain heads, finalized number 0 and disabled -[jaeger::Span
]’s. - Construct a new view with the given chain heads and finalized number 0.
Structs
- Specialized wrapper around
View
. - Identifier of a peer of the network.
- Description of a reputation adjustment for a node.
- A succinct representation of a peer’s view. This consists of a bounded amount of chain heads +
jaeger::Span
’s. - Construct a new view with the given chain heads and finalized number 0.
Structs
- Specialized wrapper around
View
. - Identifier of a peer of the network.
- Description of a reputation adjustment for a node.
- A succinct representation of a peer’s view. This consists of a bounded amount of chain heads and the highest known finalized block number.
- An error indicating that this the over-arching message type had the wrong variant
Enums
- When sending a request, what to do on a disconnected recipient.
- The advertised role of a node.
- Unified annoyance cost and good behavior benefits.
- A protocol-versioned type.
Constants
- The minimum amount of peers to send gossip messages to.
Type Definitions
- Version-annotated messages used by the approval distribution subsystem.
- Version-annotated messages used by the bitfield distribution subsystem.
- Version-annotated messages used by the bitfield distribution subsystem.
- Version-annotated messages used by the gossip-support subsystem (this is void).
- Version-annotated messages used by the statement distribution subsystem.
- All supported versions of the collation protocol message.
- All supported versions of the validation protocol message.
macro_rules! our_view { ( $( $hash:expr ),* $(,)? ) => { ... }; }
Expand description
Construct a new OurView
with the given chain heads, finalized number 0 and disabled
-[jaeger::Span
]’s.
jaeger::Span
’s.
NOTE: Use for tests only.
Example
let our_view = our_view![Hash::repeat_byte(1), Hash::repeat_byte(2)];
Safety
bytes consumed. Read more§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
impl<T> DefensiveMax<T> for Twhere T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
impl<T> DefensiveMin<T> for Twhere T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
index 492d3c5d0b9f..984d7e527ccc 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
@@ -1,8 +1,8 @@
AvailableDataFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum AvailableDataFetchingResponse {
- AvailableData(AvailableData),
+ AvailableData(AvailableData),
NoSuchData,
}
Expand description
Receive a requested available data.
-Variants§
§AvailableData(AvailableData)
The requested data.
+Variants§
§AvailableData(AvailableData)
The requested data.
§NoSuchData
Node was not in possession of the requested data.
Trait Implementations§
source§impl Clone for AvailableDataFetchingResponse
source§fn clone(&self) -> AvailableDataFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Decode for AvailableDataFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
@@ -15,7 +15,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
source§impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
§impl RefUnwindSafe for AvailableDataFetchingResponse
§impl Send for AvailableDataFetchingResponse
§impl Sync for AvailableDataFetchingResponse
§impl Unpin for AvailableDataFetchingResponse
§impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
source§impl<T> Any for Twhere
+ F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
source§fn from(x: Option<AvailableData>) -> Self
Converts to this type from the input type.source§impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
§impl RefUnwindSafe for AvailableDataFetchingResponse
§impl Send for AvailableDataFetchingResponse
§impl Sync for AvailableDataFetchingResponse
§impl Unpin for AvailableDataFetchingResponse
§impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
index 934f3e44b005..042ed93c16cb 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
index a827ac5ded91..dce9613d790f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
@@ -1,7 +1,7 @@
CollationFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum CollationFetchingResponse {
- Collation(CandidateReceipt, PoV),
+ Collation(CandidateReceipt, PoV),
}
Expand description
Responses as sent by collators.
-Variants§
§Collation(CandidateReceipt, PoV)
Deliver requested collation.
+Variants§
Trait Implementations§
source§impl Clone for CollationFetchingResponse
source§fn clone(&self) -> CollationFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollationFetchingResponse
source§impl Decode for CollationFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -29,8 +29,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
index 8d5c7e2d69bd..234c66d6fcec 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
@@ -30,8 +30,8 @@
input: &mut &[u8]
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+bytes consumed. Read more
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
index 7342f58acd2f..0cd9b4b480ff 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
@@ -1,8 +1,8 @@
PoVFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum PoVFetchingResponse {
- PoV(PoV),
+ PoV(PoV),
NoSuchPoV,
}
Expand description
Responses to PoVFetchingRequest
.
-Variants§
§PoV(PoV)
Deliver requested PoV.
+Variants§
Trait Implementations§
source§impl Clone for PoVFetchingResponse
source§fn clone(&self) -> PoVFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for PoVFetchingResponse
source§impl Decode for PoVFetchingResponse
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
index b8b0a9017b93..16cb01151d48 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
@@ -1,10 +1,10 @@
StatementFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
-Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
index 492d3c5d0b9f..984d7e527ccc 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.AvailableDataFetchingResponse.html
@@ -1,8 +1,8 @@
AvailableDataFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum AvailableDataFetchingResponse {
- AvailableData(AvailableData),
+ AvailableData(AvailableData),
NoSuchData,
}
Expand description
Receive a requested available data.
-Variants§
§AvailableData(AvailableData)
The requested data.
+Variants§
§AvailableData(AvailableData)
The requested data.
§NoSuchData
Node was not in possession of the requested data.
Trait Implementations§
source§impl Clone for AvailableDataFetchingResponse
source§fn clone(&self) -> AvailableDataFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Decode for AvailableDataFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
@@ -15,7 +15,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
source§impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
§impl RefUnwindSafe for AvailableDataFetchingResponse
§impl Send for AvailableDataFetchingResponse
§impl Sync for AvailableDataFetchingResponse
§impl Unpin for AvailableDataFetchingResponse
§impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
source§impl<T> Any for Twhere
+ F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
source§fn from(x: Option<AvailableData>) -> Self
Converts to this type from the input type.source§impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
§impl RefUnwindSafe for AvailableDataFetchingResponse
§impl Send for AvailableDataFetchingResponse
§impl Sync for AvailableDataFetchingResponse
§impl Unpin for AvailableDataFetchingResponse
§impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
index 934f3e44b005..042ed93c16cb 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
index a827ac5ded91..dce9613d790f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
@@ -1,7 +1,7 @@
CollationFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum CollationFetchingResponse {
- Collation(CandidateReceipt, PoV),
+ Collation(CandidateReceipt, PoV),
}
Expand description
Responses as sent by collators.
-Variants§
§Collation(CandidateReceipt, PoV)
Deliver requested collation.
+Variants§
Trait Implementations§
source§impl Clone for CollationFetchingResponse
source§fn clone(&self) -> CollationFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollationFetchingResponse
source§impl Decode for CollationFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -29,8 +29,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
index 8d5c7e2d69bd..234c66d6fcec 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
@@ -30,8 +30,8 @@
input: &mut &[u8]
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+bytes consumed. Read more
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
index 7342f58acd2f..0cd9b4b480ff 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
@@ -1,8 +1,8 @@
PoVFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum PoVFetchingResponse {
- PoV(PoV),
+ PoV(PoV),
NoSuchPoV,
}
Expand description
Responses to PoVFetchingRequest
.
-Variants§
§PoV(PoV)
Deliver requested PoV.
+Variants§
Trait Implementations§
source§impl Clone for PoVFetchingResponse
source§fn clone(&self) -> PoVFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for PoVFetchingResponse
source§impl Decode for PoVFetchingResponse
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
index b8b0a9017b93..16cb01151d48 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
@@ -1,10 +1,10 @@
StatementFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
-Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub enum AvailableDataFetchingResponse {
- AvailableData(AvailableData),
+ AvailableData(AvailableData),
NoSuchData,
}
Expand description
Receive a requested available data.
-Variants§
AvailableData(AvailableData)
The requested data.
+Variants§
AvailableData(AvailableData)
The requested data.
NoSuchData
Node was not in possession of the requested data.
Trait Implementations§
source§impl Clone for AvailableDataFetchingResponse
impl Clone for AvailableDataFetchingResponse
source§fn clone(&self) -> AvailableDataFetchingResponse
fn clone(&self) -> AvailableDataFetchingResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Decode for AvailableDataFetchingResponse
impl Decode for AvailableDataFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
@@ -15,7 +15,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy @@ -15,7 +15,7 @@ &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere - F: FnOnce(&[u8]) -> R,
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
impl From<Option<AvailableData>> for AvailableDataFetchingResponse
impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
impl RefUnwindSafe for AvailableDataFetchingResponse
impl Send for AvailableDataFetchingResponse
impl Sync for AvailableDataFetchingResponse
impl Unpin for AvailableDataFetchingResponse
impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
source§impl<T> Any for Twhere
+ F: FnOnce(&[u8]) -> R,
impl<T> Any for Twhere + F: FnOnce(&[u8]) -> R,
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl From<Option<AvailableData>> for AvailableDataFetchingResponse
impl From<Option<AvailableData>> for AvailableDataFetchingResponse
source§fn from(x: Option<AvailableData>) -> Self
fn from(x: Option<AvailableData>) -> Self
impl EncodeLike<AvailableDataFetchingResponse> for AvailableDataFetchingResponse
Auto Trait Implementations§
impl RefUnwindSafe for AvailableDataFetchingResponse
impl Send for AvailableDataFetchingResponse
impl Sync for AvailableDataFetchingResponse
impl Unpin for AvailableDataFetchingResponse
impl UnwindSafe for AvailableDataFetchingResponse
Blanket Implementations§
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
index 934f3e44b005..042ed93c16cb 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html index 934f3e44b005..042ed93c16cb 100644 --- a/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html +++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.ChunkFetchingResponse.html @@ -31,8 +31,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
index a827ac5ded91..dce9613d790f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
@@ -1,7 +1,7 @@
CollationFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum CollationFetchingResponse {
- Collation(CandidateReceipt, PoV),
+ Collation(CandidateReceipt, PoV),
}
Expand description
Responses as sent by collators.
-Variants§
§Collation(CandidateReceipt, PoV)
Deliver requested collation.
+Variants§
Trait Implementations§
source§impl Clone for CollationFetchingResponse
source§fn clone(&self) -> CollationFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollationFetchingResponse
source§impl Decode for CollationFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -29,8 +29,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
index 8d5c7e2d69bd..234c66d6fcec 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
@@ -30,8 +30,8 @@
input: &mut &[u8]
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+bytes consumed. Read more
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
index 7342f58acd2f..0cd9b4b480ff 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
@@ -1,8 +1,8 @@
PoVFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum PoVFetchingResponse {
- PoV(PoV),
+ PoV(PoV),
NoSuchPoV,
}
Expand description
Responses to PoVFetchingRequest
.
-Variants§
§PoV(PoV)
Deliver requested PoV.
+Variants§
Trait Implementations§
source§impl Clone for PoVFetchingResponse
source§fn clone(&self) -> PoVFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for PoVFetchingResponse
source§impl Decode for PoVFetchingResponse
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
index b8b0a9017b93..16cb01151d48 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
@@ -1,10 +1,10 @@
StatementFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
-Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
index a827ac5ded91..dce9613d790f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.CollationFetchingResponse.html
@@ -1,7 +1,7 @@
CollationFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum CollationFetchingResponse {
- Collation(CandidateReceipt, PoV),
+ Collation(CandidateReceipt, PoV),
}
Expand description
Responses as sent by collators.
-Variants§
§Collation(CandidateReceipt, PoV)
Deliver requested collation.
+Variants§
Trait Implementations§
source§impl Clone for CollationFetchingResponse
source§fn clone(&self) -> CollationFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollationFetchingResponse
source§impl Decode for CollationFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -29,8 +29,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
index 8d5c7e2d69bd..234c66d6fcec 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
@@ -30,8 +30,8 @@
input: &mut &[u8]
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+bytes consumed. Read more
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
index 7342f58acd2f..0cd9b4b480ff 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
@@ -1,8 +1,8 @@
PoVFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum PoVFetchingResponse {
- PoV(PoV),
+ PoV(PoV),
NoSuchPoV,
}
Expand description
Responses to PoVFetchingRequest
.
-Variants§
§PoV(PoV)
Deliver requested PoV.
+Variants§
Trait Implementations§
source§impl Clone for PoVFetchingResponse
source§fn clone(&self) -> PoVFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for PoVFetchingResponse
source§impl Decode for PoVFetchingResponse
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
index b8b0a9017b93..16cb01151d48 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
@@ -1,10 +1,10 @@
StatementFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
-Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub enum CollationFetchingResponse {
- Collation(CandidateReceipt, PoV),
+ Collation(CandidateReceipt, PoV),
}
Expand description
Responses as sent by collators.
-Variants§
Collation(CandidateReceipt, PoV)
Deliver requested collation.
+Variants§
Trait Implementations§
source§impl Clone for CollationFetchingResponse
impl Clone for CollationFetchingResponse
source§fn clone(&self) -> CollationFetchingResponse
fn clone(&self) -> CollationFetchingResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CollationFetchingResponse
impl Debug for CollationFetchingResponse
source§impl Decode for CollationFetchingResponse
impl Decode for CollationFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -29,8 +29,8 @@
) -> Result<T, Error>
fn decode_into<I>( @@ -29,8 +29,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
index 8d5c7e2d69bd..234c66d6fcec 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html
@@ -30,8 +30,8 @@
input: &mut &[u8]
) -> Result<T, Error>
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html index 8d5c7e2d69bd..234c66d6fcec 100644 --- a/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html +++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.DisputeResponse.html @@ -30,8 +30,8 @@ input: &mut &[u8] ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+bytes consumed. Read more
impl<Q, K> Equivalent<K> for Qwhere +bytes consumed. Read more
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
index 7342f58acd2f..0cd9b4b480ff 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
@@ -1,8 +1,8 @@
PoVFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum PoVFetchingResponse {
- PoV(PoV),
+ PoV(PoV),
NoSuchPoV,
}
Expand description
Responses to PoVFetchingRequest
.
-Variants§
§PoV(PoV)
Deliver requested PoV.
+Variants§
Trait Implementations§
source§impl Clone for PoVFetchingResponse
source§fn clone(&self) -> PoVFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for PoVFetchingResponse
source§impl Decode for PoVFetchingResponse
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
index b8b0a9017b93..16cb01151d48 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
@@ -1,10 +1,10 @@
StatementFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
-Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
index 7342f58acd2f..0cd9b4b480ff 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.PoVFetchingResponse.html
@@ -1,8 +1,8 @@
PoVFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum PoVFetchingResponse {
- PoV(PoV),
+ PoV(PoV),
NoSuchPoV,
}
Expand description
Responses to PoVFetchingRequest
.
-Variants§
§PoV(PoV)
Deliver requested PoV.
+Variants§
Trait Implementations§
source§impl Clone for PoVFetchingResponse
source§fn clone(&self) -> PoVFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for PoVFetchingResponse
source§impl Decode for PoVFetchingResponse
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
index b8b0a9017b93..16cb01151d48 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
@@ -1,10 +1,10 @@
StatementFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
-Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub enum PoVFetchingResponse {
- PoV(PoV),
+ PoV(PoV),
NoSuchPoV,
}
Expand description
Responses to PoVFetchingRequest
.
Variants§
PoV(PoV)
Deliver requested PoV.
+Variants§
Trait Implementations§
source§impl Clone for PoVFetchingResponse
impl Clone for PoVFetchingResponse
source§fn clone(&self) -> PoVFetchingResponse
fn clone(&self) -> PoVFetchingResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PoVFetchingResponse
impl Debug for PoVFetchingResponse
source§impl Decode for PoVFetchingResponse
impl Decode for PoVFetchingResponse
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
index b8b0a9017b93..16cb01151d48 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
@@ -1,10 +1,10 @@
StatementFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
-Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
index b8b0a9017b93..16cb01151d48 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/enum.StatementFetchingResponse.html
@@ -1,10 +1,10 @@
StatementFetchingResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
-Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
§Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub enum StatementFetchingResponse {
- Statement(CommittedCandidateReceipt),
+ Statement(CommittedCandidateReceipt),
}
Expand description
Respond with found full statement.
In this protocol the requester will only request data it was previously notified about,
therefore not having the data is not really an option and would just result in a
RequestFailure
.
Variants§
Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
+Variants§
Statement(CommittedCandidateReceipt)
Data missing to reconstruct the full signed statement.
Trait Implementations§
source§impl Clone for StatementFetchingResponse
impl Clone for StatementFetchingResponse
source§fn clone(&self) -> StatementFetchingResponse
fn clone(&self) -> StatementFetchingResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StatementFetchingResponse
impl Debug for StatementFetchingResponse
source§impl Decode for StatementFetchingResponse
impl Decode for StatementFetchingResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
fn decode_into<I>( @@ -32,8 +32,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
index 5201f160a39c..fe36ca56249c 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html index 5201f160a39c..fe36ca56249c 100644 --- a/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html +++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.AvailableDataFetchingRequest.html @@ -28,8 +28,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
index b50e41b0cc7d..969e45498f1b 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkFetchingRequest.html
@@ -1,9 +1,9 @@
ChunkFetchingRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-§index: ValidatorIndex
The index of the chunk to fetch.
+§index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub struct ChunkFetchingRequest {
pub candidate_hash: CandidateHash,
- pub index: ValidatorIndex,
+ pub index: ValidatorIndex,
}
Expand description
Request an availability chunk.
Fields§
§candidate_hash: CandidateHash
Hash of candidate we want a chunk for.
-index: ValidatorIndex
The index of the chunk to fetch.
+index: ValidatorIndex
The index of the chunk to fetch.
Trait Implementations§
source§impl Clone for ChunkFetchingRequest
impl Clone for ChunkFetchingRequest
source§fn clone(&self) -> ChunkFetchingRequest
fn clone(&self) -> ChunkFetchingRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChunkFetchingRequest
impl Debug for ChunkFetchingRequest
source§impl Decode for ChunkFetchingRequest
impl Decode for ChunkFetchingRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
fn decode_into<I>( @@ -31,8 +31,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
index d7437f8f8439..4b278705763f 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.ChunkResponse.html
@@ -1,14 +1,14 @@
ChunkResponse in polkadot_node_network_protocol::request_response::v1 - Rust pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
+§proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<ErasureChunk> for ChunkResponse
source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
Converts to this type from the input type.source§impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
§impl RefUnwindSafe for ChunkResponse
§impl Send for ChunkResponse
§impl Sync for ChunkResponse
§impl Unpin for ChunkResponse
§impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub struct ChunkResponse {
pub chunk: Vec<u8>,
- pub proof: Proof,
+ pub proof: Proof,
}
Expand description
Skimmed down variant of ErasureChunk
.
Instead of transmitting a full ErasureChunk
we transmit ChunkResponse
in
ChunkFetchingResponse
, which omits the chunk’s index. The index is already known by
the requester and by not transmitting it, we ensure the requester is going to use his index
value for validating the response, thus making sure he got what he requested.
Fields§
§chunk: Vec<u8>
The erasure-encoded chunk of data belonging to the candidate block.
-proof: Proof
Proof for this chunk’s branch in the Merkle tree.
-Implementations§
source§impl ChunkResponse
impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
pub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
proof: Proof
Proof for this chunk’s branch in the Merkle tree.
+Implementations§
source§impl ChunkResponse
impl ChunkResponse
sourcepub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
pub fn recombine_into_chunk(self, req: &ChunkFetchingRequest) -> ErasureChunk
Re-build an ErasureChunk
from response and request.
Trait Implementations§
source§impl Clone for ChunkResponse
impl Clone for ChunkResponse
source§fn clone(&self) -> ChunkResponse
fn clone(&self) -> ChunkResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChunkResponse
impl Debug for ChunkResponse
source§impl Decode for ChunkResponse
impl Decode for ChunkResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -20,7 +20,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn decode_into<I>( @@ -20,7 +20,7 @@ &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere - F: FnOnce(&[u8]) -> R,
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl From<ErasureChunk> for ChunkResponse
impl From<ErasureChunk> for ChunkResponse
impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
impl RefUnwindSafe for ChunkResponse
impl Send for ChunkResponse
impl Sync for ChunkResponse
impl Unpin for ChunkResponse
impl UnwindSafe for ChunkResponse
Blanket Implementations§
source§impl From<ErasureChunk> for ChunkResponse
impl From<ErasureChunk> for ChunkResponse
source§fn from(_: ErasureChunk) -> Self
fn from(_: ErasureChunk) -> Self
impl EncodeLike<ChunkResponse> for ChunkResponse
Auto Trait Implementations§
impl RefUnwindSafe for ChunkResponse
impl Send for ChunkResponse
impl Sync for ChunkResponse
impl Unpin for ChunkResponse
impl UnwindSafe for ChunkResponse
Blanket Implementations§
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
index 76224ba34a28..18b55b6f7761 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html index 76224ba34a28..18b55b6f7761 100644 --- a/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html +++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.CollationFetchingRequest.html @@ -31,8 +31,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
index b7ce45cfa15d..4964ee56f5c8 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.DisputeRequest.html
@@ -1,6 +1,6 @@
-DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+DisputeRequest in polkadot_node_network_protocol::request_response::v1 - Rust pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
Converts to this type from the input type.source§impl IsRequest for DisputeRequest
source§impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
§impl RefUnwindSafe for DisputeRequest
§impl Send for DisputeRequest
§impl Sync for DisputeRequest
§impl Unpin for DisputeRequest
§impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
+pub struct DisputeRequest(pub UncheckedDisputeMessage);
Expand description
A dispute request.
Contains an invalid vote a valid one for a particular candidate in a given session.
-Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
fn clone(&self) -> DisputeRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DisputeRequest
impl Debug for DisputeRequest
Tuple Fields§
§0: UncheckedDisputeMessage
Trait Implementations§
source§impl Clone for DisputeRequest
impl Clone for DisputeRequest
source§fn clone(&self) -> DisputeRequest
fn clone(&self) -> DisputeRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DisputeRequest
impl Debug for DisputeRequest
source§impl Decode for DisputeRequest
impl Decode for DisputeRequest
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
input: &mut I,
@@ -10,7 +10,7 @@
I: Input,
fn decode_into<I>( input: &mut I, @@ -10,7 +10,7 @@ I: Input,
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
source§impl Encode for DisputeRequest
impl Encode for DisputeRequest
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
-)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy -)
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl From<DisputeMessage> for DisputeRequest
impl From<DisputeMessage> for DisputeRequest
source§impl IsRequest for DisputeRequest
impl IsRequest for DisputeRequest
impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
impl RefUnwindSafe for DisputeRequest
impl Send for DisputeRequest
impl Sync for DisputeRequest
impl Unpin for DisputeRequest
impl UnwindSafe for DisputeRequest
Blanket Implementations§
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl From<DisputeMessage> for DisputeRequest
impl From<DisputeMessage> for DisputeRequest
source§fn from(msg: DisputeMessage) -> Self
fn from(msg: DisputeMessage) -> Self
source§impl IsRequest for DisputeRequest
impl IsRequest for DisputeRequest
impl EncodeLike<DisputeRequest> for DisputeRequest
Auto Trait Implementations§
impl RefUnwindSafe for DisputeRequest
impl Send for DisputeRequest
impl Sync for DisputeRequest
impl Unpin for DisputeRequest
impl UnwindSafe for DisputeRequest
Blanket Implementations§
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
index 74878e35943e..40959e6bf079 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html
@@ -28,8 +28,8 @@
) -> Result<T, Error>
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html index 74878e35943e..40959e6bf079 100644 --- a/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html +++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.PoVFetchingRequest.html @@ -28,8 +28,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
index 9b16653d8f9c..bd034f2191ee 100644
--- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
+++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where diff --git a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html index 9b16653d8f9c..bd034f2191ee 100644 --- a/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html +++ b/doc/polkadot_node_network_protocol/request_response/v1/struct.StatementFetchingRequest.html @@ -31,8 +31,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_network_protocol/struct.OurView.html b/doc/polkadot_node_network_protocol/struct.OurView.html
index da8de8f34164..1c4e02eb0711 100644
--- a/doc/polkadot_node_network_protocol/struct.OurView.html
+++ b/doc/polkadot_node_network_protocol/struct.OurView.html
@@ -1,11 +1,11 @@
OurView in polkadot_node_network_protocol - Rust Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
-Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html
index b87ee4c0f248..6f93bd92a35a 100644
--- a/doc/polkadot_node_network_protocol/struct.View.html
+++ b/doc/polkadot_node_network_protocol/struct.View.html
@@ -58,8 +58,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
Struct polkadot_node_network_protocol::OurView
source · pub struct OurView { /* private fields */ }
Expand description
Specialized wrapper around View
.
Besides the access to the view itself, it also gives access to the [jaeger::Span
] per
+
Besides the access to the view itself, it also gives access to the jaeger::Span
per
leave/head.
Implementations§
source§impl OurView
impl OurView
sourcepub fn new(
- heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
+ heads: impl IntoIterator<Item = (Hash, Arc<Span>)>,
finalized_number: BlockNumber
) -> Self
pub fn new( - heads: impl IntoIterator<Item = (Hash, Arc<Span>)>, + heads: impl IntoIterator<Item = (Hash, Arc<Span>)>, finalized_number: BlockNumber ) -> Self
Creates a new instance.
-sourcepub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
pub fn span_per_head(&self) -> &HashMap<Hash, Arc<Span>>
Returns the span per head map.
+Methods from Deref<Target = View>§
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Check if the number of heads contained, is null.
diff --git a/doc/polkadot_node_network_protocol/struct.View.html b/doc/polkadot_node_network_protocol/struct.View.html index b87ee4c0f248..6f93bd92a35a 100644 --- a/doc/polkadot_node_network_protocol/struct.View.html +++ b/doc/polkadot_node_network_protocol/struct.View.html @@ -58,8 +58,8 @@ ) -> Result<T, Error>Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
index 5f061afabe8c..9f2d1ddcf56e 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ApprovalDistributionMessage.html
@@ -1,10 +1,10 @@
ApprovalDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
§Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+§Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub enum ApprovalDistributionMessage {
- Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
- Approvals(Vec<IndirectSignedApprovalVote>),
+ Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>),
+ Approvals(Vec<IndirectSignedApprovalVote>),
}
Expand description
Network messages used by the approval distribution subsystem.
-Variants§
Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
+Variants§
Assignments(Vec<(IndirectAssignmentCert, CandidateIndex)>)
Assignments for candidates in recent, unfinalized blocks.
Actually checking the assignment may yield a different result.
-Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
+Approvals(Vec<IndirectSignedApprovalVote>)
Approvals for candidates in some recent, unfinalized block.
Trait Implementations§
source§impl Clone for ApprovalDistributionMessage
impl Clone for ApprovalDistributionMessage
source§fn clone(&self) -> ApprovalDistributionMessage
fn clone(&self) -> ApprovalDistributionMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ApprovalDistributionMessage
impl Debug for ApprovalDistributionMessage
source§impl Decode for ApprovalDistributionMessage
impl Decode for ApprovalDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -34,8 +34,8 @@
) -> Result<T, Error>
fn decode_into<I>( @@ -34,8 +34,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
index 7b20eaf5b6a9..fb643c53a44a 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.BitfieldDistributionMessage.html
@@ -1,7 +1,7 @@
BitfieldDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
§Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub enum BitfieldDistributionMessage {
- Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
+ Bitfield(Hash, UncheckedSignedAvailabilityBitfield),
}
Expand description
Network messages used by the bitfield distribution subsystem.
-Variants§
Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
+Variants§
Bitfield(Hash, UncheckedSignedAvailabilityBitfield)
A signed availability bitfield for a given relay-parent hash.
Trait Implementations§
source§impl Clone for BitfieldDistributionMessage
impl Clone for BitfieldDistributionMessage
source§fn clone(&self) -> BitfieldDistributionMessage
fn clone(&self) -> BitfieldDistributionMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BitfieldDistributionMessage
impl Debug for BitfieldDistributionMessage
source§impl Decode for BitfieldDistributionMessage
impl Decode for BitfieldDistributionMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -31,8 +31,8 @@
) -> Result<T, Error>
fn decode_into<I>( @@ -31,8 +31,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
index e553b63fd7ce..7040f07440c6 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html index e553b63fd7ce..7040f07440c6 100644 --- a/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html +++ b/doc/polkadot_node_network_protocol/v1/enum.CollationProtocol.html @@ -31,8 +31,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
index c8237ed64915..b759c64ce668 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.CollatorProtocolMessage.html
@@ -1,13 +1,13 @@
CollatorProtocolMessage in polkadot_node_network_protocol::v1 - Rust pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
+
Variants§
§Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
§AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has
declared that they are a collator with given ID.
-§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+§CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub enum CollatorProtocolMessage {
- Declare(CollatorId, ParaId, CollatorSignature),
+ Declare(CollatorId, ParaId, CollatorSignature),
AdvertiseCollation(Hash),
- CollationSeconded(Hash, UncheckedSignedFullStatement),
+ CollationSeconded(Hash, UncheckedSignedFullStatement),
}
Expand description
Network messages used by the collator protocol subsystem
-Variants§
Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a +
Variants§
Declare(CollatorId, ParaId, CollatorSignature)
Declare the intent to advertise collations under a collator ID, attaching a
signature of the PeerId
of the node using the given collator ID key.
AdvertiseCollation(Hash)
Advertise a collation to a validator. Can only be sent once the peer has declared that they are a collator with given ID.
-CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
+CollationSeconded(Hash, UncheckedSignedFullStatement)
A collation sent to a validator was seconded.
Trait Implementations§
source§impl Clone for CollatorProtocolMessage
impl Clone for CollatorProtocolMessage
source§fn clone(&self) -> CollatorProtocolMessage
fn clone(&self) -> CollatorProtocolMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CollatorProtocolMessage
impl Debug for CollatorProtocolMessage
source§impl Decode for CollatorProtocolMessage
impl Decode for CollatorProtocolMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
fn decode_into<I>( @@ -37,8 +37,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
index fced84dd40b5..157fae1ca7c7 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.StatementDistributionMessage.html
@@ -1,13 +1,13 @@
StatementDistributionMessage in polkadot_node_network_protocol::v1 - Rust pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
§Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
§LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node
via request/response.
-Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub enum StatementDistributionMessage {
- Statement(Hash, UncheckedSignedFullStatement),
+ Statement(Hash, UncheckedSignedFullStatement),
LargeStatement(StatementMetadata),
}
Expand description
Network messages used by the statement distribution subsystem.
-Variants§
Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
+Variants§
Statement(Hash, UncheckedSignedFullStatement)
A signed full statement under a given relay-parent.
LargeStatement(StatementMetadata)
Seconded statement with large payload (e.g. containing a runtime upgrade).
We only gossip the hash in that case, actual payloads can be fetched from sending node via request/response.
-Implementations§
source§impl StatementDistributionMessage
impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
pub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
-sourcepub fn get_signature(&self) -> ValidatorSignature
pub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
+Implementations§
source§impl StatementDistributionMessage
impl StatementDistributionMessage
sourcepub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
pub fn get_fingerprint(&self) -> (CompactStatement, ValidatorIndex)
Get fingerprint describing the contained statement uniquely.
+sourcepub fn get_signature(&self) -> ValidatorSignature
pub fn get_signature(&self) -> ValidatorSignature
Get the signature from the statement.
sourcepub fn get_relay_parent(&self) -> Hash
pub fn get_relay_parent(&self) -> Hash
Get contained relay parent.
sourcepub fn is_large_statement(&self) -> bool
pub fn is_large_statement(&self) -> bool
Whether this message contains a large statement.
Trait Implementations§
source§impl Clone for StatementDistributionMessage
impl Clone for StatementDistributionMessage
source§fn clone(&self) -> StatementDistributionMessage
fn clone(&self) -> StatementDistributionMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StatementDistributionMessage
impl Debug for StatementDistributionMessage
source§impl Decode for StatementDistributionMessage
impl Decode for StatementDistributionMessage
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
index eddf6c0a4a44..28067e4c8e54 100644
--- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
+++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html
@@ -35,8 +35,8 @@
) -> Result<T, Error>
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, diff --git a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html index eddf6c0a4a44..28067e4c8e54 100644 --- a/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html +++ b/doc/polkadot_node_network_protocol/v1/enum.ValidationProtocol.html @@ -35,8 +35,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
index f530c652bdca..67f784525f55 100644
--- a/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
+++ b/doc/polkadot_node_network_protocol/v1/struct.StatementMetadata.html
@@ -1,13 +1,13 @@
StatementMetadata in polkadot_node_network_protocol::v1 - Rust pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
§candidate_hash: CandidateHash
Hash of the candidate that got validated.
-§signed_by: ValidatorIndex
Validator that attested the validity.
-§signature: ValidatorSignature
Signature of seconding validator.
+§signed_by: ValidatorIndex
Validator that attested the validity.
+§signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
-§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
+§RelayVRFDelay
Fields
§core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the
candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
@@ -42,8 +42,8 @@
) -> Result<T, Error>Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
pub struct StatementMetadata {
pub relay_parent: Hash,
pub candidate_hash: CandidateHash,
- pub signed_by: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub signed_by: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
Data that makes a statement unique.
Fields§
§relay_parent: Hash
Relay parent this statement is relevant under.
candidate_hash: CandidateHash
Hash of the candidate that got validated.
-signed_by: ValidatorIndex
Validator that attested the validity.
-signature: ValidatorSignature
Signature of seconding validator.
+signed_by: ValidatorIndex
Validator that attested the validity.
+signature: ValidatorSignature
Signature of seconding validator.
Trait Implementations§
source§impl Clone for StatementMetadata
impl Clone for StatementMetadata
source§fn clone(&self) -> StatementMetadata
fn clone(&self) -> StatementMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StatementMetadata
impl Debug for StatementMetadata
source§impl Decode for StatementMetadata
impl Decode for StatementMetadata
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -42,8 +42,8 @@
) -> Result<T, Error>
fn decode_into<I>( @@ -42,8 +42,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
index 8784845be214..ea489aa2477e 100644
--- a/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
+++ b/doc/polkadot_node_primitives/approval/enum.AssignmentCertKind.html
@@ -3,7 +3,7 @@
sample: u32,
},
RelayVRFDelay {
- core_index: CoreIndex,
+ core_index: CoreIndex,
},
}Expand description
Different kinds of input data or criteria that can prove a validator’s assignment
to check a particular parachain.
@@ -11,7 +11,7 @@
Expand description
Different kinds of input data or criteria that can prove a validator’s assignment to check a particular parachain.
@@ -11,7 +11,7 @@An assignment story based on the VRF that authorized the relay-chain block where the candidate was included combined with a sample number.
The context used to produce bytes is RELAY_VRF_MODULO_CONTEXT
RelayVRFDelay
Fields
core_index: CoreIndex
The core index chosen in this cert.
+RelayVRFDelay
Fields
core_index: CoreIndex
The core index chosen in this cert.
An assignment story based on the VRF that authorized the relay-chain block where the candidate was included combined with the index of a particular core.
The context is RELAY_VRF_DELAY_CONTEXT
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
index 1305990994fb..14017b5303fb 100644
--- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html
@@ -31,8 +31,8 @@
) -> Result<T, Error>
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, diff --git a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html index 1305990994fb..14017b5303fb 100644 --- a/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html +++ b/doc/polkadot_node_primitives/approval/struct.AssignmentCert.html @@ -31,8 +31,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
index 84cf253d8e12..162e329d1a48 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectAssignmentCert.html
@@ -1,11 +1,11 @@
IndirectAssignmentCert in polkadot_node_primitives::approval - Rust pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is
relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§validator: ValidatorIndex
The validator index.
+§validator: ValidatorIndex
The validator index.
§cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
pub struct IndirectAssignmentCert {
pub block_hash: Hash,
- pub validator: ValidatorIndex,
+ pub validator: ValidatorIndex,
pub cert: AssignmentCert,
}
Expand description
An assignment criterion which refers to the candidate under which the assignment is relevant by block hash.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-validator: ValidatorIndex
The validator index.
+validator: ValidatorIndex
The validator index.
cert: AssignmentCert
The cert itself.
Trait Implementations§
source§impl Clone for IndirectAssignmentCert
impl Clone for IndirectAssignmentCert
source§fn clone(&self) -> IndirectAssignmentCert
fn clone(&self) -> IndirectAssignmentCert
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IndirectAssignmentCert
impl Debug for IndirectAssignmentCert
source§impl Decode for IndirectAssignmentCert
impl Decode for IndirectAssignmentCert
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
index 5ff97dbddcce..accd347dda21 100644
--- a/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
+++ b/doc/polkadot_node_primitives/approval/struct.IndirectSignedApprovalVote.html
@@ -1,15 +1,15 @@
IndirectSignedApprovalVote in polkadot_node_primitives::approval - Rust pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-§validator: ValidatorIndex
The validator index.
-§signature: ValidatorSignature
The signature by the validator.
+§candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+§validator: ValidatorIndex
The validator index.
+§signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
pub struct IndirectSignedApprovalVote {
pub block_hash: Hash,
- pub candidate_index: CandidateIndex,
- pub validator: ValidatorIndex,
- pub signature: ValidatorSignature,
+ pub candidate_index: CandidateIndex,
+ pub validator: ValidatorIndex,
+ pub signature: ValidatorSignature,
}
Expand description
A signed approval vote which references the candidate indirectly via the block.
In practice, we have a look-up from block hash and candidate index to candidate hash,
so this can be transformed into a SignedApprovalVote
.
Fields§
§block_hash: Hash
A block hash where the candidate appears.
-candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
-validator: ValidatorIndex
The validator index.
-signature: ValidatorSignature
The signature by the validator.
+candidate_index: CandidateIndex
The index of the candidate in the list of candidates fully included as-of the block.
+validator: ValidatorIndex
The validator index.
+signature: ValidatorSignature
The signature by the validator.
Trait Implementations§
source§impl Clone for IndirectSignedApprovalVote
impl Clone for IndirectSignedApprovalVote
source§fn clone(&self) -> IndirectSignedApprovalVote
fn clone(&self) -> IndirectSignedApprovalVote
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IndirectSignedApprovalVote
impl Debug for IndirectSignedApprovalVote
source§impl Decode for IndirectSignedApprovalVote
impl Decode for IndirectSignedApprovalVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
fn decode_into<I>( @@ -37,8 +37,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
index 4d14c4a6fa66..f226972dcabf 100644
--- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
+++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html
@@ -26,8 +26,8 @@
) -> Result<T, Error>
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, diff --git a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html index 4d14c4a6fa66..f226972dcabf 100644 --- a/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html +++ b/doc/polkadot_node_primitives/approval/struct.RelayVRFStory.html @@ -26,8 +26,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html
index 988b6629f441..2d3f1f6b9b64 100644
--- a/doc/polkadot_node_primitives/approval/struct.Slot.html
+++ b/doc/polkadot_node_primitives/approval/struct.Slot.html
@@ -53,8 +53,8 @@
bytes consumed. Read more
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where diff --git a/doc/polkadot_node_primitives/approval/struct.Slot.html b/doc/polkadot_node_primitives/approval/struct.Slot.html index 988b6629f441..2d3f1f6b9b64 100644 --- a/doc/polkadot_node_primitives/approval/struct.Slot.html +++ b/doc/polkadot_node_primitives/approval/struct.Slot.html @@ -53,8 +53,8 @@ bytes consumed. Read more
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd<T>,
impl<T> DefensiveMax<T> for Twhere T: PartialOrd<T>,
§fn defensive_max(self, other: T) -> T
fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd<T>,
impl<T> DefensiveMin<T> for Twhere T: PartialOrd<T>,
§fn defensive_min(self, other: T) -> T
fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
index a10d3b354a8a..d73601a04301 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html
@@ -30,8 +30,8 @@
) -> Result<T, Error>
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, diff --git a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html index a10d3b354a8a..d73601a04301 100644 --- a/doc/polkadot_node_primitives/approval/struct.VrfOutput.html +++ b/doc/polkadot_node_primitives/approval/struct.VrfOutput.html @@ -30,8 +30,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
index 73928fe9810c..04ff7fc1592a 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html
@@ -23,8 +23,8 @@
) -> Result<T, Error>
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, diff --git a/doc/polkadot_node_primitives/approval/struct.VrfProof.html b/doc/polkadot_node_primitives/approval/struct.VrfProof.html index 73928fe9810c..04ff7fc1592a 100644 --- a/doc/polkadot_node_primitives/approval/struct.VrfProof.html +++ b/doc/polkadot_node_primitives/approval/struct.VrfProof.html @@ -23,8 +23,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
index c36e8a41473b..c6532daec53e 100644
--- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
+++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html
@@ -33,8 +33,8 @@
) -> Result<T, Error>
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, diff --git a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html index c36e8a41473b..c6532daec53e 100644 --- a/doc/polkadot_node_primitives/approval/struct.VrfSignature.html +++ b/doc/polkadot_node_primitives/approval/struct.VrfSignature.html @@ -33,8 +33,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
+ T: Clone,
impl<Q, K> Equivalent<K> for Qwhere + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
index 7d032c7394a7..68eb881228e2 100644
--- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
+++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html
@@ -55,8 +55,8 @@
) -> Result<T, Error>
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, diff --git a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html index 7d032c7394a7..68eb881228e2 100644 --- a/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html +++ b/doc/polkadot_node_primitives/disputes/enum.DisputeStatus.html @@ -55,8 +55,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
index 911f732963bc..7714db274171 100644
--- a/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.CandidateVotes.html
@@ -1,12 +1,12 @@
CandidateVotes in polkadot_node_primitives::disputes - Rust Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
§valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+§invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for CandidateVotes
§impl Send for CandidateVotes
§impl Sync for CandidateVotes
§impl Unpin for CandidateVotes
§impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
Implementations§
source§impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
@@ -30,7 +30,7 @@
their given index would very likely not match the ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all
programming errors that one could realistically make here.
-
sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
index 6539bddc193d..1494bcb88f28 100644
--- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
+++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html
@@ -1,12 +1,12 @@
InvalidDisputeVote in polkadot_node_primitives::disputes - Rust pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
+
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+§signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
-§kind: InvalidDisputeStatementKind
Kind of dispute statement.
+§kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
Struct polkadot_node_primitives::disputes::CandidateVotes
source · pub struct CandidateVotes {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub valid: ValidCandidateVotes,
- pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
+ pub invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>,
}
Expand description
Tracked votes on candidates, for the purposes of dispute resolution.
-Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
+Fields§
§candidate_receipt: CandidateReceipt
The receipt of the candidate itself.
valid: ValidCandidateVotes
Votes of validity, sorted by validator index.
-invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
-Implementations§
source§impl CandidateVotes
impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
pub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
+invalid: BTreeMap<ValidatorIndex, (InvalidDisputeStatementKind, ValidatorSignature)>
Votes of invalidity, sorted by validator index.
+Implementations§
source§impl CandidateVotes
impl CandidateVotes
sourcepub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
pub fn voted_indices(&self) -> BTreeSet<ValidatorIndex>
Get the set of all validators who have votes in the set, ascending.
Trait Implementations§
source§impl Clone for CandidateVotes
impl Clone for CandidateVotes
source§fn clone(&self) -> CandidateVotes
fn clone(&self) -> CandidateVotes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for CandidateVotes
impl Send for CandidateVotes
impl Sync for CandidateVotes
impl Unpin for CandidateVotes
impl UnwindSafe for CandidateVotes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
index 9a83c0910142..2d34b68030d3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html
@@ -6,11 +6,11 @@
versioned.
impl<T> BorrowMut<T> for Twhere diff --git a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html index 9a83c0910142..2d34b68030d3 100644 --- a/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html +++ b/doc/polkadot_node_primitives/disputes/struct.DisputeMessage.html @@ -6,11 +6,11 @@ versioned.
Implementations§
source§impl DisputeMessage
impl DisputeMessage
sourcepub fn from_signed_statements(
valid_statement: SignedDisputeStatement,
- valid_index: ValidatorIndex,
+ valid_index: ValidatorIndex,
invalid_statement: SignedDisputeStatement,
- invalid_index: ValidatorIndex,
- candidate_receipt: CandidateReceipt,
- session_info: &SessionInfo
+ invalid_index: ValidatorIndex,
+ candidate_receipt: CandidateReceipt,
+ session_info: &SessionInfo
) -> Result<Self, Error>
pub fn from_signed_statements( valid_statement: SignedDisputeStatement, - valid_index: ValidatorIndex, + valid_index: ValidatorIndex, invalid_statement: SignedDisputeStatement, - invalid_index: ValidatorIndex, - candidate_receipt: CandidateReceipt, - session_info: &SessionInfo + invalid_index: ValidatorIndex, + candidate_receipt: CandidateReceipt, + session_info: &SessionInfo ) -> Result<Self, Error>
Build a SignedDisputeMessage
and check what can be checked.
This function checks that:
-
@@ -30,7 +30,7 @@
their given index would very likely not match the
ValidatorId
s in the statements.
So in summary, this smart constructor should be smart enough to prevent from almost all programming errors that one could realistically make here.
-sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
pub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
+sourcepub fn candidate_receipt(&self) -> &CandidateReceipt
pub fn candidate_receipt(&self) -> &CandidateReceipt
Read only access to the candidate receipt.
sourcepub fn session_index(&self) -> SessionIndex
pub fn session_index(&self) -> SessionIndex
Read only access to the SessionIndex
.
sourcepub fn invalid_vote(&self) -> &InvalidDisputeVote
pub fn invalid_vote(&self) -> &InvalidDisputeVote
Read only access to the invalid vote.
sourcepub fn valid_vote(&self) -> &ValidDisputeVote
pub fn valid_vote(&self) -> &ValidDisputeVote
Read only access to the valid vote.
diff --git a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html index 6539bddc193d..1494bcb88f28 100644 --- a/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html +++ b/doc/polkadot_node_primitives/disputes/struct.InvalidDisputeVote.html @@ -1,12 +1,12 @@pub struct InvalidDisputeVote {
- pub validator_index: ValidatorIndex,
- pub signature: ValidatorSignature,
- pub kind: InvalidDisputeStatementKind,
+ pub validator_index: ValidatorIndex,
+ pub signature: ValidatorSignature,
+ pub kind: InvalidDisputeStatementKind,
}
Expand description
Any invalid vote (currently only explicit).
-Fields§
§validator_index: ValidatorIndex
The voting validator index.
-signature: ValidatorSignature
The validator signature, that can be verified when constructing a +
Fields§
§validator_index: ValidatorIndex
The voting validator index.
+signature: ValidatorSignature
The validator signature, that can be verified when constructing a
SignedDisputeStatement
.
kind: InvalidDisputeStatementKind
Kind of dispute statement.
+kind: InvalidDisputeStatementKind
Kind of dispute statement.
Trait Implementations§
source§impl Clone for InvalidDisputeVote
impl Clone for InvalidDisputeVote
source§fn clone(&self) -> InvalidDisputeVote
fn clone(&self) -> InvalidDisputeVote
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InvalidDisputeVote
impl Debug for InvalidDisputeVote
source§impl Decode for InvalidDisputeVote
impl Decode for InvalidDisputeVote
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -32,8 +32,8 @@
) -> Result<T, Error>
fn decode_into<I>( @@ -32,8 +32,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
index f752c84d6094..17df42aea19e 100644
--- a/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
+++ b/doc/polkadot_node_primitives/disputes/struct.SignedDisputeStatement.html
@@ -1,38 +1,38 @@
SignedDisputeStatement in polkadot_node_primitives::disputes - Rust pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
-sourcepub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
UncheckedDisputeMessage in polkadot_node_primitives::disputes - Rust pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
-Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
§session_index: SessionIndex
The session the candidate appears in.
§invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
§valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
+ session_info: &SessionInfo
+) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
source§fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
§impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.
sourcepub fn retain<F>(&mut self, f: F)where
- F: FnMut(&ValidatorIndex, &mut (ValidDisputeStatementKind, ValidatorSignature)) -> bool,
pub struct SignedDisputeStatement { /* private fields */ }
Expand description
A checked dispute statement from an associated validator.
Implementations§
source§impl SignedDisputeStatement
impl SignedDisputeStatement
sourcepub fn new_unchecked_from_trusted_source(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Self
pub fn new_unchecked_from_trusted_source( - dispute_statement: DisputeStatement, + dispute_statement: DisputeStatement, candidate_hash: CandidateHash, session_index: SessionIndex, - validator_public: ValidatorId, - validator_signature: ValidatorSignature + validator_public: ValidatorId, + validator_signature: ValidatorSignature ) -> Self
Create a new SignedDisputeStatement
from information
that is available on-chain, and hence already can be trusted.
Attention: Not to be used other than with guaranteed fetches.
sourcepub fn new_checked(
- dispute_statement: DisputeStatement,
+ dispute_statement: DisputeStatement,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId,
- validator_signature: ValidatorSignature
+ validator_public: ValidatorId,
+ validator_signature: ValidatorSignature
) -> Result<Self, ()>
pub fn new_checked( - dispute_statement: DisputeStatement, + dispute_statement: DisputeStatement, candidate_hash: CandidateHash, session_index: SessionIndex, - validator_public: ValidatorId, - validator_signature: ValidatorSignature + validator_public: ValidatorId, + validator_signature: ValidatorSignature ) -> Result<Self, ()>
Create a new SignedDisputeStatement
, which is only possible by checking the signature.
sourcepub fn sign_explicit(
keystore: &KeystorePtr,
valid: bool,
candidate_hash: CandidateHash,
session_index: SessionIndex,
- validator_public: ValidatorId
+ validator_public: ValidatorId
) -> Result<Option<Self>, KeystoreError>
pub fn sign_explicit( keystore: &KeystorePtr, valid: bool, candidate_hash: CandidateHash, session_index: SessionIndex, - validator_public: ValidatorId + validator_public: ValidatorId ) -> Result<Option<Self>, KeystoreError>
Sign this statement with the given keystore and key. Pass valid = true
to
indicate validity of the candidate, and valid = false
to indicate invalidity.
sourcepub fn statement(&self) -> &DisputeStatement
pub fn statement(&self) -> &DisputeStatement
Access the underlying dispute statement
+sourcepub fn candidate_hash(&self) -> &CandidateHash
pub fn candidate_hash(&self) -> &CandidateHash
Access the underlying candidate hash.
-sourcepub fn validator_public(&self) -> &ValidatorId
pub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
-sourcepub fn validator_signature(&self) -> &ValidatorSignature
pub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
-sourcepub fn into_validator_signature(self) -> ValidatorSignature
pub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
+sourcepub fn validator_public(&self) -> &ValidatorId
pub fn validator_public(&self) -> &ValidatorId
Access the underlying validator public key.
+sourcepub fn validator_signature(&self) -> &ValidatorSignature
pub fn validator_signature(&self) -> &ValidatorSignature
Access the underlying validator signature.
+sourcepub fn into_validator_signature(self) -> ValidatorSignature
pub fn into_validator_signature(self) -> ValidatorSignature
Consume self to return the signature.
sourcepub fn session_index(&self) -> SessionIndex
pub fn session_index(&self) -> SessionIndex
Access the underlying session index.
sourcepub fn from_backing_statement(
backing_statement: &UncheckedSignedFullStatement,
- signing_context: SigningContext,
- validator_public: ValidatorId
+ signing_context: SigningContext,
+ validator_public: ValidatorId
) -> Result<Self, ()>
pub fn from_backing_statement( backing_statement: &UncheckedSignedFullStatement, - signing_context: SigningContext, - validator_public: ValidatorId + signing_context: SigningContext, + validator_public: ValidatorId ) -> Result<Self, ()>
Convert a [SignedFullStatement
] to a SignedDisputeStatement
As [SignedFullStatement
] contains only the validator index and
not the validator public key, the public key must be passed as well,
diff --git a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
index 2bdfc10cb8cb..5e990ebed0a3 100644
--- a/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
+++ b/doc/polkadot_node_primitives/disputes/struct.UncheckedDisputeMessage.html
@@ -1,17 +1,17 @@
pub struct UncheckedDisputeMessage {
- pub candidate_receipt: CandidateReceipt,
+ pub candidate_receipt: CandidateReceipt,
pub session_index: SessionIndex,
pub invalid_vote: InvalidDisputeVote,
pub valid_vote: ValidDisputeVote,
}
Expand description
A DisputeMessage
where signatures of statements have not yet been checked.
Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
+Fields§
§candidate_receipt: CandidateReceipt
The candidate being disputed.
session_index: SessionIndex
The session the candidate appears in.
invalid_vote: InvalidDisputeVote
The invalid vote data that makes up this dispute.
valid_vote: ValidDisputeVote
The valid vote that makes this dispute request valid.
Implementations§
source§impl UncheckedDisputeMessage
impl UncheckedDisputeMessage
sourcepub fn try_into_signed_votes(
self,
- session_info: &SessionInfo
-) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
pub fn try_into_signed_votes( self, - session_info: &SessionInfo -) -> Result<(CandidateReceipt, (SignedDisputeStatement, ValidatorIndex), (SignedDisputeStatement, ValidatorIndex)), ()>
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Try to recover the two signed dispute votes from an UncheckedDisputeMessage
.
Trait Implementations§
source§impl Clone for UncheckedDisputeMessage
impl Clone for UncheckedDisputeMessage
source§fn clone(&self) -> UncheckedDisputeMessage
fn clone(&self) -> UncheckedDisputeMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UncheckedDisputeMessage
impl Debug for UncheckedDisputeMessage
source§impl Decode for UncheckedDisputeMessage
impl Decode for UncheckedDisputeMessage
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
@@ -37,8 +37,8 @@
) -> Result<T, Error>
fn decode_into<I>( @@ -37,8 +37,8 @@ ) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
+ T: Clone,
fn fmt_binary(self) -> FmtBinary<Self>where + T: Clone,
fn __clone_box(&self, _: Private) -> *mut ()
§impl<T> EncodeAs<T> for Twhere
+ T: Encode,
impl<T> EncodeAs<T> for Twhere + T: Encode,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
index 5be744175927..bea981abb0c7 100644
--- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
+++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html
@@ -3,24 +3,24 @@
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where diff --git a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html index 5be744175927..bea981abb0c7 100644 --- a/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html +++ b/doc/polkadot_node_primitives/disputes/struct.ValidCandidateVotes.html @@ -3,24 +3,24 @@
Implementations§
source§impl ValidCandidateVotes
impl ValidCandidateVotes
sourcepub fn insert_vote(
&mut self,
- validator_index: ValidatorIndex,
- kind: ValidDisputeStatementKind,
- sig: ValidatorSignature
+ validator_index: ValidatorIndex,
+ kind: ValidDisputeStatementKind,
+ sig: ValidatorSignature
) -> bool
pub fn insert_vote( &mut self, - validator_index: ValidatorIndex, - kind: ValidDisputeStatementKind, - sig: ValidatorSignature + validator_index: ValidatorIndex, + kind: ValidDisputeStatementKind, + sig: ValidatorSignature ) -> bool
Insert a vote, replacing any already existing vote.
Except, for backing votes: Backing votes are always kept, and will never get overridden.
Import of other king of valid
votes, will be ignored if a backing vote is already
present. Any already existing valid
vote, will be overridden by any given backing vote.
Returns: true, if the insert had any effect.