mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 03:31:05 +00:00
Remove default hasher (#4739)
* remove default hasher from decl_storage! * fix decl_storage declarations
This commit is contained in:
@@ -233,12 +233,14 @@ decl_storage! {
|
||||
|
||||
/// For each session index, we keep a mapping of `AuthIndex`
|
||||
/// to `offchain::OpaqueNetworkState`.
|
||||
ReceivedHeartbeats get(fn received_heartbeats): double_map SessionIndex, AuthIndex
|
||||
ReceivedHeartbeats get(fn received_heartbeats):
|
||||
double_map hasher(blake2_256) SessionIndex, hasher(blake2_256) AuthIndex
|
||||
=> Option<Vec<u8>>;
|
||||
|
||||
/// For each session index, we keep a mapping of `T::ValidatorId` to the
|
||||
/// number of blocks authored by the given authority.
|
||||
AuthoredBlocks get(fn authored_blocks): double_map SessionIndex, T::ValidatorId => u32;
|
||||
AuthoredBlocks get(fn authored_blocks):
|
||||
double_map hasher(blake2_256) SessionIndex, hasher(blake2_256) T::ValidatorId => u32;
|
||||
}
|
||||
add_extra_genesis {
|
||||
config(keys): Vec<T::AuthorityId>;
|
||||
|
||||
Reference in New Issue
Block a user