add NodeFeatures field to HostConfiguration and runtime API (#2177)
Adds a `NodeFeatures` bitfield value to the runtime `HostConfiguration`, with the purpose of coordinating the enabling of node-side features, such as: https://github.com/paritytech/polkadot-sdk/issues/628 and https://github.com/paritytech/polkadot-sdk/issues/598. These are features that require all validators enable them at the same time, assuming all/most nodes have upgraded their node versions. This PR doesn't add any feature yet. These are coming in future PRs. Also adds a runtime API for querying the state of the client features and an extrinsic for setting/unsetting a feature by its index in the bitfield. Note: originally part of: https://github.com/paritytech/polkadot-sdk/pull/1644, but posted as standalone to be reused by other PRs until the initial PR is merged
Showing
- Cargo.lock 1 addition, 0 deletionsCargo.lock
- cumulus/client/relay-chain-minimal-node/src/blockchain_rpc_client.rs 5 additions, 0 deletions...ent/relay-chain-minimal-node/src/blockchain_rpc_client.rs
- cumulus/client/relay-chain-rpc-interface/src/rpc_client.rs 11 additions, 1 deletioncumulus/client/relay-chain-rpc-interface/src/rpc_client.rs
- cumulus/parachains/integration-tests/emulated/chains/relays/rococo/src/lib.rs 1 addition, 1 deletion...ntegration-tests/emulated/chains/relays/rococo/src/lib.rs
- cumulus/parachains/integration-tests/emulated/chains/relays/westend/src/lib.rs 1 addition, 1 deletion...tegration-tests/emulated/chains/relays/westend/src/lib.rs
- polkadot/node/core/runtime-api/src/cache.rs 19 additions, 1 deletionpolkadot/node/core/runtime-api/src/cache.rs
- polkadot/node/core/runtime-api/src/lib.rs 22 additions, 1 deletionpolkadot/node/core/runtime-api/src/lib.rs
- polkadot/node/core/runtime-api/src/tests.rs 10 additions, 6 deletionspolkadot/node/core/runtime-api/src/tests.rs
- polkadot/node/subsystem-types/src/messages.rs 11 additions, 6 deletionspolkadot/node/subsystem-types/src/messages.rs
- polkadot/node/subsystem-types/src/runtime_client.rs 16 additions, 6 deletionspolkadot/node/subsystem-types/src/runtime_client.rs
- polkadot/node/subsystem-util/src/runtime/mod.rs 31 additions, 2 deletionspolkadot/node/subsystem-util/src/runtime/mod.rs
- polkadot/primitives/Cargo.toml 1 addition, 1 deletionpolkadot/primitives/Cargo.toml
- polkadot/primitives/src/runtime_api.rs 11 additions, 4 deletionspolkadot/primitives/src/runtime_api.rs
- polkadot/primitives/src/vstaging/mod.rs 5 additions, 0 deletionspolkadot/primitives/src/vstaging/mod.rs
- polkadot/runtime/parachains/src/configuration.rs 39 additions, 14 deletionspolkadot/runtime/parachains/src/configuration.rs
- polkadot/runtime/parachains/src/configuration/benchmarking.rs 2 additions, 0 deletions...adot/runtime/parachains/src/configuration/benchmarking.rs
- polkadot/runtime/parachains/src/configuration/migration.rs 1 addition, 0 deletionspolkadot/runtime/parachains/src/configuration/migration.rs
- polkadot/runtime/parachains/src/configuration/migration/v10.rs 277 additions, 0 deletions...dot/runtime/parachains/src/configuration/migration/v10.rs
- polkadot/runtime/parachains/src/configuration/migration/v9.rs 105 additions, 2 deletions...adot/runtime/parachains/src/configuration/migration/v9.rs
- polkadot/runtime/parachains/src/configuration/tests.rs 8 additions, 0 deletionspolkadot/runtime/parachains/src/configuration/tests.rs
Please register or sign in to comment