core: save StateRootInHeader in genesis block

This commit is contained in:
Evgenii Stratonikov 2020-11-23 16:24:47 +03:00
parent 7d91a3a89e
commit 966b50f2ae

View file

@ -51,7 +51,8 @@ func createGenesisBlock(cfg config.ProtocolConfiguration) (*block.Block, error)
InvocationScript: []byte{},
VerificationScript: []byte{byte(opcode.PUSH1)},
},
Network: cfg.Magic,
StateRootEnabled: cfg.StateRootInHeader,
Network: cfg.Magic,
}
b := &block.Block{