Skip to content

Commit

Permalink
feat: address suggestions from @bkontur
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Dec 9, 2024
1 parent 32e5753 commit f19aee3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ impl pallet_mmr::Config for Runtime {
type LeafData = pallet_beefy_mmr::Pallet<Runtime>;
type BlockHashProvider = pallet_mmr::DefaultBlockHashProvider<Runtime>;
#[cfg(feature = "runtime-benchmarks")]
type BenchmarkHelper = ();
type BenchmarkHelper = parachains_paras::benchmarking::mmr_setup::MmrSetup<Runtime>;
}

/// MMR helper types.
Expand Down
2 changes: 1 addition & 1 deletion relay/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ impl pallet_mmr::Config for Runtime {
type LeafData = pallet_beefy_mmr::Pallet<Runtime>;
type BlockHashProvider = pallet_mmr::DefaultBlockHashProvider<Runtime>;
#[cfg(feature = "runtime-benchmarks")]
type BenchmarkHelper = ();
type BenchmarkHelper = parachains_paras::benchmarking::mmr_setup::MmrSetup<Runtime>;
}

/// MMR helper types.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,19 +513,16 @@ pub mod bridging {
]
);

// TODO: @bkontur or @acatangiu, please confirm if this chain will be used at all.
pub const PolkadotNetwork: NetworkId = NetworkId::Polkadot;
pub const EthereumNetwork: NetworkId = NetworkId::Ethereum { chain_id: 1 };
// TODO: @bkontur or @acatangiu, please confirm if this should be in the configuration, or if
// this `chain_id` is just for testing purposes.
pub EthereumEcosystem: Location = Location::new(2, [GlobalConsensus(EthereumNetwork::get())]);
pub DotLocation: Location = Location::new(2, [GlobalConsensus(PolkadotNetwork::get())]);
pub AssetHubPolkadot: Location = Location::new(
2,
[
GlobalConsensus(PolkadotNetwork::get()),
Parachain(polkadot_runtime_constants::system_parachain::ASSET_HUB_ID),
],
],
);

/// Set up exporters configuration.
Expand Down

0 comments on commit f19aee3

Please sign in to comment.