You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
The background is that we want to inject a DigestItem into the header of the genesis block, I thought calling frame_system::deposit_log() in genesis build should work, but it's not because right now only the genesis storage/state is taken care of and the genesis Digest is hardcoded as the default value.
Since we already have built the genesis storage, we could extract the Digest value from the state and extend construct_genesis_block(state_root, digest) using it, so that people can use frame_system::deposit_log() during the genesis build as normal.
The background is that we want to inject a
DigestIteminto the header of the genesis block, I thought callingframe_system::deposit_log()in genesis build should work, but it's not because right now only the genesis storage/state is taken care of and the genesisDigestis hardcoded as the default value.substrate/client/service/src/client/genesis.rs
Line 34 in 1d8f7bf
Since we already have built the genesis storage, we could extract the
Digestvalue from the state and extendconstruct_genesis_block(state_root, digest)using it, so that people can useframe_system::deposit_log()during the genesis build as normal.substrate/client/service/src/client/client.rs
Lines 335 to 339 in 1d8f7bf
By adding this feature, people can have full control of building the genesis block.