mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 14:31:02 +00:00
More backports from Cumulus subtree to polkadot-staging (#2283)
* more backports from Cumulus subtree * spelling * fmt * trigger CI * Revert "trigger CI" This reverts commit b009d732aa26d006a7f2b48878ee864c338c49d5. * Revert "Revert "trigger CI"" This reverts commit 715606a75948124962b14dbb260cf3aed01bc665. * Revert "Revert "Revert "trigger CI""" This reverts commit dc0d2233da86fd12a77216008e59bd38fcbb2fac.
This commit is contained in:
committed by
Bastian Köcher
parent
4d42bb22f3
commit
57550eb867
@@ -58,21 +58,21 @@ impl ChainWithBalances for Westend {
|
||||
}
|
||||
}
|
||||
|
||||
/// Westmint parachain definition
|
||||
/// `AssetHubWestend` parachain definition
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct Westmint;
|
||||
pub struct AssetHubWestend;
|
||||
|
||||
impl UnderlyingChainProvider for Westmint {
|
||||
type Chain = bp_westend::Westmint;
|
||||
impl UnderlyingChainProvider for AssetHubWestend {
|
||||
type Chain = bp_westend::AssetHubWestend;
|
||||
}
|
||||
|
||||
// Westmint seems to use the same configuration as all Polkadot-like chains, so we'll use Westend
|
||||
// primitives here.
|
||||
impl Chain for Westmint {
|
||||
const ID: ChainId = bp_runtime::WESTMINT_CHAIN_ID;
|
||||
impl Chain for AssetHubWestend {
|
||||
const ID: ChainId = bp_runtime::ASSET_HUB_WESTEND_CHAIN_ID;
|
||||
const NAME: &'static str = "Westmint";
|
||||
const BEST_FINALIZED_HEADER_ID_METHOD: &'static str =
|
||||
bp_westend::BEST_FINALIZED_WESTMINT_HEADER_METHOD;
|
||||
bp_westend::BEST_FINALIZED_ASSETHUBWESTEND_HEADER_METHOD;
|
||||
const AVERAGE_BLOCK_INTERVAL: Duration = Duration::from_secs(6);
|
||||
|
||||
type SignedBlock = bp_westend::SignedBlock;
|
||||
|
||||
Reference in New Issue
Block a user