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
parent
5601f286
Showing
- polkadot/runtime/rococo/src/lib.rs 1 addition, 0 deletionspolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/westend/src/lib.rs 1 addition, 0 deletionspolkadot/runtime/westend/src/lib.rs
- substrate/bin/node/runtime/src/lib.rs 1 addition, 0 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/beefy-mmr/src/mock.rs 2 additions, 0 deletionssubstrate/frame/beefy-mmr/src/mock.rs
- substrate/frame/merkle-mountain-range/src/lib.rs 24 additions, 0 deletionssubstrate/frame/merkle-mountain-range/src/lib.rs
- substrate/frame/merkle-mountain-range/src/mmr/storage.rs 2 additions, 2 deletionssubstrate/frame/merkle-mountain-range/src/mmr/storage.rs
- substrate/frame/merkle-mountain-range/src/mock.rs 1 addition, 0 deletionssubstrate/frame/merkle-mountain-range/src/mock.rs
Please register or sign in to comment