mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 23:21:06 +00:00
Moves Block to frame_system instead of construct_runtime and removes Header and BlockNumber (#7431)
* Companion for substrate * Minor update * Formatting * Fixes for cumulus * Fixes tests in polkadot-runtime-parachains * Minor update * Removes unused import * Fixes tests in polkadot-runtime-common * Minor fix * Update roadmap/implementers-guide/src/runtime/configuration.md Co-authored-by: ordian <write@reusable.software> * ".git/.scripts/commands/fmt/fmt.sh" * update lockfile for {"substrate"} --------- Co-authored-by: ordian <write@reusable.software> Co-authored-by: command-bot <>
This commit is contained in:
@@ -56,7 +56,7 @@ pub fn configuration() -> HostConfiguration {
|
||||
///
|
||||
/// If there is already a pending update for the current session index + 1, then it won't be touched. Otherwise,
|
||||
/// that would violate the promise of this function that changes will be applied on the second session change (cur + 2).
|
||||
fn schedule_config_update(updater: impl FnOnce(&mut HostConfiguration<T::BlockNumber>)) -> DispatchResult
|
||||
fn schedule_config_update(updater: impl FnOnce(&mut HostConfiguration<BlockNumberFor<T>>)) -> DispatchResult
|
||||
```
|
||||
|
||||
## Entry-points
|
||||
|
||||
@@ -140,6 +140,7 @@ During the transition period, the para object is still considered in its existin
|
||||
### Storage Layout
|
||||
|
||||
```rust
|
||||
use frame_system::pallet_prelude::BlockNumberFor;
|
||||
/// All currently active PVF pre-checking votes.
|
||||
///
|
||||
/// Invariant:
|
||||
@@ -197,12 +198,12 @@ UpgradeRestrictionSignal: map hasher(twox_64_concat) ParaId => Option<UpgradeRes
|
||||
/// The list of parachains that are awaiting for their upgrade restriction to cooldown.
|
||||
///
|
||||
/// Ordered ascending by block number.
|
||||
UpgradeCooldowns: Vec<(ParaId, T::BlockNumber)>;
|
||||
UpgradeCooldowns: Vec<(ParaId, BlockNumberFor<T>)>;
|
||||
/// The list of upcoming code upgrades. Each item is a pair of which para performs a code
|
||||
/// upgrade and at which relay-chain block it is expected at.
|
||||
///
|
||||
/// Ordered ascending by block number.
|
||||
UpcomingUpgrades: Vec<(ParaId, T::BlockNumber)>;
|
||||
UpcomingUpgrades: Vec<(ParaId, BlockNumberFor<T>)>;
|
||||
/// The actions to perform during the start of a specific session index.
|
||||
ActionsQueue: map SessionIndex => Vec<ParaId>;
|
||||
/// Upcoming paras instantiation arguments.
|
||||
|
||||
Reference in New Issue
Block a user