mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-07 11:21:07 +00:00
Tweak to avoid minor entropy loss (#14152)
This commit is contained in:
1 parent
147b018463
commit
bd45542b20
1 file changed
+1
-1
@@ -1318,7 +1318,7 @@ impl<T: Config> Pallet<T> {
|
||||
ExecutionPhase::<T>::put(Phase::Initialization);
|
||||
storage::unhashed::put(well_known_keys::EXTRINSIC_INDEX, &0u32);
|
||||
let entropy = (b"frame_system::initialize", parent_hash).using_encoded(blake2_256);
|
||||
storage::unhashed::put(well_known_keys::INTRABLOCK_ENTROPY, &entropy[..]);
|
||||
storage::unhashed::put_raw(well_known_keys::INTRABLOCK_ENTROPY, &entropy[..]);
|
||||
<Number<T>>::put(number);
|
||||
<Digest<T>>::put(digest);
|
||||
<ParentHash<T>>::put(parent_hash);
|
||||
|
||||
Reference in new issue
Block a user