mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 15:11:02 +00:00
Refactor storage hashing away from opaque types (#903)
* Refactor storage of various modules. * The real list of claims * Migration away from opaque maps * Fix * Fix for task executor API change
This commit is contained in:
@@ -106,11 +106,11 @@ decl_storage! {
|
||||
trait Store for Module<T: Trait> as Attestations {
|
||||
/// A mapping from modular block number (n % AttestationPeriod)
|
||||
/// to session index and the list of candidate hashes.
|
||||
pub RecentParaBlocks: map hasher(blake2_256) T::BlockNumber => Option<IncludedBlocks<T>>;
|
||||
pub RecentParaBlocks: map hasher(twox_64_concat) T::BlockNumber => Option<IncludedBlocks<T>>;
|
||||
|
||||
/// Attestations on a recent parachain block.
|
||||
pub ParaBlockAttestations:
|
||||
double_map hasher(blake2_256) T::BlockNumber, hasher(blake2_128) Hash
|
||||
double_map hasher(twox_64_concat) T::BlockNumber, hasher(identity) Hash
|
||||
=> Option<BlockAttestations<T>>;
|
||||
|
||||
// Did we already have more attestations included in this block?
|
||||
|
||||
Reference in New Issue
Block a user