mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
2431001ec0
Fixes https://github.com/paritytech/polkadot-sdk/issues/3144 Builds on top of https://github.com/paritytech/polkadot-sdk/pull/3229 ### Summary Some preparations for Runtime to support elastic scaling, guarded by config node features bit `FeatureIndex::ElasticScalingMVP`. This PR introduces a per-candidate `CoreIndex` but does it in a hacky way to avoid changing `CandidateCommitments`, `CandidateReceipts` primitives and networking protocols. #### Including `CoreIndex` in `BackedCandidate` If the `ElasticScalingMVP` feature bit is enabled then `BackedCandidate::validator_indices` is extended by 8 bits. The value stored in these bits represents the assumed core index for the candidate. It is temporary solution which works by creating a mapping from `BackedCandidate` to `CoreIndex` by assuming the `CoreIndex` can be discovered by checking in which validator group the validator that signed the statement is. TODO: - [x] fix tests - [x] add new tests - [x] Bump runtime API for Kusama, so we have that node features thing! -> https://github.com/polkadot-fellows/runtimes/pull/194 --------- Signed-off-by: Andrei Sandu <andrei-mihail@parity.io> Signed-off-by: alindima <alin@parity.io> Co-authored-by: alindima <alin@parity.io>
38 lines
1.7 KiB
TOML
38 lines
1.7 KiB
TOML
[package]
|
|
name = "polkadot-node-core-backing"
|
|
version = "7.0.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "The Candidate Backing Subsystem. Tracks parachain candidates that can be backed, as well as the issuance of statements about candidates."
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
futures = "0.3.21"
|
|
sp-keystore = { path = "../../../../substrate/primitives/keystore" }
|
|
polkadot-primitives = { path = "../../../primitives" }
|
|
polkadot-node-primitives = { path = "../../primitives" }
|
|
polkadot-node-subsystem = { path = "../../subsystem" }
|
|
polkadot-node-subsystem-util = { path = "../../subsystem-util" }
|
|
erasure-coding = { package = "polkadot-erasure-coding", path = "../../../erasure-coding" }
|
|
statement-table = { package = "polkadot-statement-table", path = "../../../statement-table" }
|
|
bitvec = { version = "1.0.0", default-features = false, features = ["alloc"] }
|
|
gum = { package = "tracing-gum", path = "../../gum" }
|
|
thiserror = { workspace = true }
|
|
fatality = "0.0.6"
|
|
schnellru = "0.2.1"
|
|
|
|
[dev-dependencies]
|
|
sp-core = { path = "../../../../substrate/primitives/core" }
|
|
sp-application-crypto = { path = "../../../../substrate/primitives/application-crypto" }
|
|
sp-keyring = { path = "../../../../substrate/primitives/keyring" }
|
|
sc-keystore = { path = "../../../../substrate/client/keystore" }
|
|
sp-tracing = { path = "../../../../substrate/primitives/tracing" }
|
|
futures = { version = "0.3.21", features = ["thread-pool"] }
|
|
assert_matches = "1.4.0"
|
|
rstest = "0.18.2"
|
|
polkadot-node-subsystem-test-helpers = { path = "../../subsystem-test-helpers" }
|
|
test-helpers = { package = "polkadot-primitives-test-helpers", path = "../../../primitives/test-helpers" }
|