mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
committed by
Gav Wood
parent
1f717763e2
commit
1c5d6d59a7
@@ -258,11 +258,6 @@ impl Service {
|
||||
let prepare_genesis = || {
|
||||
storage = genesis_config.build_externalities();
|
||||
let block = genesis::construct_genesis_block(&storage);
|
||||
with_externalities(&mut storage, || {
|
||||
// TODO: use api.rs to dispatch instead
|
||||
polkadot_runtime::System::initialise_genesis_state(&block.header);
|
||||
info!("Genesis header hash: {}", polkadot_runtime::System::block_hash(0));
|
||||
});
|
||||
(primitives::block::Header::decode(&mut block.header.encode().as_ref()).expect("to_vec() always gives a valid serialisation; qed"), storage.into_iter().collect())
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user