mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 22:47:56 +00:00
define block hash provider and default impl using frame_system (#4080)
This PR introduces `BlockHashProvider` into `pallet_mmr::Config` This type is used to get `block_hash` for a given `block_number` rather than directly using `frame_system::Pallet::block_hash` The `DefaultBlockHashProvider` uses `frame_system::Pallet::block_hash` to get the `block_hash` Closes: #4062
This commit is contained in:
committed by
GitHub
parent
5601f2865b
commit
5b513cc0e9
@@ -1602,6 +1602,7 @@ impl pallet_mmr::Config for Runtime {
|
||||
type Hashing = Keccak256;
|
||||
type LeafData = pallet_mmr::ParentNumberAndHash<Self>;
|
||||
type OnNewRoot = pallet_beefy_mmr::DepositBeefyDigest<Runtime>;
|
||||
type BlockHashProvider = pallet_mmr::DefaultBlockHashProvider<Runtime>;
|
||||
type WeightInfo = ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user