Merge pull request #2491 from obscuren/genesis-config-fix

core, eth: added json tag field for proper unmarshalling
This commit is contained in:
Jeffrey Wilcke 2016-04-28 12:58:56 +02:00
commit e62c2aeb1b

View File

@ -43,7 +43,7 @@ func WriteGenesisBlock(chainDb ethdb.Database, reader io.Reader) (*types.Block,
}
var genesis struct {
ChainConfig *ChainConfig
ChainConfig *ChainConfig `json:"config"`
Nonce string
Timestamp string
ParentHash string