mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 06:21:02 +00:00
Use primitives reexported from polkadot_primitives crate root (#2067)
* Use primitives reexported from `polkadot_primitives` crate root
* restart CI
* Fixes after merge
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -376,7 +376,7 @@ pub mod pallet {
|
||||
.read_upgrade_go_ahead_signal()
|
||||
.expect("Invalid upgrade go ahead signal");
|
||||
match upgrade_go_ahead_signal {
|
||||
Some(relay_chain::v2::UpgradeGoAhead::GoAhead) => {
|
||||
Some(relay_chain::UpgradeGoAhead::GoAhead) => {
|
||||
assert!(
|
||||
<PendingValidationCode<T>>::exists(),
|
||||
"No new validation function found in storage, GoAhead signal is not expected",
|
||||
@@ -389,7 +389,7 @@ pub mod pallet {
|
||||
relay_chain_block_num: vfp.relay_parent_number,
|
||||
});
|
||||
},
|
||||
Some(relay_chain::v2::UpgradeGoAhead::Abort) => {
|
||||
Some(relay_chain::UpgradeGoAhead::Abort) => {
|
||||
<PendingValidationCode<T>>::kill();
|
||||
Self::deposit_event(Event::ValidationFunctionDiscarded);
|
||||
},
|
||||
@@ -546,7 +546,7 @@ pub mod pallet {
|
||||
/// set after the inherent.
|
||||
#[pallet::storage]
|
||||
pub(super) type UpgradeRestrictionSignal<T: Config> =
|
||||
StorageValue<_, Option<relay_chain::v2::UpgradeRestriction>, ValueQuery>;
|
||||
StorageValue<_, Option<relay_chain::UpgradeRestriction>, ValueQuery>;
|
||||
|
||||
/// The state proof for the last relay parent block.
|
||||
///
|
||||
@@ -605,7 +605,7 @@ pub mod pallet {
|
||||
/// This will be cleared in `on_initialize` of each new block.
|
||||
#[pallet::storage]
|
||||
pub(super) type HrmpWatermark<T: Config> =
|
||||
StorageValue<_, relay_chain::v2::BlockNumber, ValueQuery>;
|
||||
StorageValue<_, relay_chain::BlockNumber, ValueQuery>;
|
||||
|
||||
/// HRMP messages that were sent in a block.
|
||||
///
|
||||
@@ -828,7 +828,7 @@ impl<T: Config> Pallet<T> {
|
||||
fn process_inbound_horizontal_messages(
|
||||
ingress_channels: &[(ParaId, cumulus_primitives_core::AbridgedHrmpChannel)],
|
||||
horizontal_messages: BTreeMap<ParaId, Vec<InboundHrmpMessage>>,
|
||||
relay_parent_number: relay_chain::v2::BlockNumber,
|
||||
relay_parent_number: relay_chain::BlockNumber,
|
||||
) -> Weight {
|
||||
// First, check that all submitted messages are sent from channels that exist. The
|
||||
// channel exists if its MQC head is present in `vfp.hrmp_mqc_heads`.
|
||||
|
||||
Reference in New Issue
Block a user