mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 22:11:06 +00:00
Generated
+400
-443
File diff suppressed because it is too large
Load Diff
@@ -1,13 +1,14 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-node-core-prospective-parachains"
|
name = "polkadot-node-core-prospective-parachains"
|
||||||
version = "0.9.16"
|
version.workspace = true
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors.workspace = true
|
||||||
edition = "2018"
|
edition.workspace = true
|
||||||
|
license.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.3.19"
|
futures = "0.3.19"
|
||||||
gum = { package = "tracing-gum", path = "../../gum" }
|
gum = { package = "tracing-gum", path = "../../gum" }
|
||||||
parity-scale-codec = "2"
|
parity-scale-codec = "3.6.4"
|
||||||
thiserror = "1.0.30"
|
thiserror = "1.0.30"
|
||||||
fatality = "0.0.6"
|
fatality = "0.0.6"
|
||||||
bitvec = "1"
|
bitvec = "1"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ polkadot-node-subsystem = {path = "../../subsystem" }
|
|||||||
polkadot-node-primitives = { path = "../../primitives" }
|
polkadot-node-primitives = { path = "../../primitives" }
|
||||||
polkadot-node-subsystem-util = { path = "../../subsystem-util" }
|
polkadot-node-subsystem-util = { path = "../../subsystem-util" }
|
||||||
polkadot-node-network-protocol = { path = "../../network/protocol" }
|
polkadot-node-network-protocol = { path = "../../network/protocol" }
|
||||||
arrayvec = "0.5.2"
|
arrayvec = "0.7.4"
|
||||||
indexmap = "1.9.1"
|
indexmap = "1.9.1"
|
||||||
parity-scale-codec = { version = "3.6.1", default-features = false, features = ["derive"] }
|
parity-scale-codec = { version = "3.6.1", default-features = false, features = ["derive"] }
|
||||||
thiserror = "1.0.31"
|
thiserror = "1.0.31"
|
||||||
|
|||||||
@@ -160,8 +160,8 @@ impl RecentOutdatedHeads {
|
|||||||
/// via other means.
|
/// via other means.
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
struct VcPerPeerTracker {
|
struct VcPerPeerTracker {
|
||||||
local_observed: arrayvec::ArrayVec<[CandidateHash; VC_THRESHOLD]>,
|
local_observed: arrayvec::ArrayVec<CandidateHash, VC_THRESHOLD>,
|
||||||
remote_observed: arrayvec::ArrayVec<[CandidateHash; VC_THRESHOLD]>,
|
remote_observed: arrayvec::ArrayVec<CandidateHash, VC_THRESHOLD>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl VcPerPeerTracker {
|
impl VcPerPeerTracker {
|
||||||
@@ -193,7 +193,7 @@ impl VcPerPeerTracker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn note_hash(
|
fn note_hash(
|
||||||
observed: &mut arrayvec::ArrayVec<[CandidateHash; VC_THRESHOLD]>,
|
observed: &mut arrayvec::ArrayVec<CandidateHash, VC_THRESHOLD>,
|
||||||
h: CandidateHash,
|
h: CandidateHash,
|
||||||
) -> bool {
|
) -> bool {
|
||||||
if observed.contains(&h) {
|
if observed.contains(&h) {
|
||||||
|
|||||||
Reference in New Issue
Block a user