referrerpolicy=no-referrer-when-downgrade

Module v5

Module v5 

Source
Expand description

Version 5. Migration to storage version 5.

Up to version 4 a proposal was keyed by the hash of the proposed call alone. From version 5 the key is Pallet::proposal_hash, the hash of (call, threshold). This migration re-keys every active proposal so that on-chain state satisfies the new derivation.

Structs§

UncheckedMigrateToV5
Re-key every active proposal from hash(call) to hash((call, threshold)).

Type Aliases§

MigrateToV5
UncheckedMigrateToV5 wrapped in a [VersionedMigration], so that it runs exactly once when the on-chain storage version is 4 and bumps it to 5.