Tweak to avoid minor entropy loss (#14152)

This commit is contained in:
Gavin Wood
2023-05-15 20:19:23 +01:00
committed by GitHub
parent 147b018463
commit bd45542b20
+1 -1
View File
@@ -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);