good morning!!!!

Skip to content
Snippets Groups Projects
Commit c1a4dcfc authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

core, eth: added json tag field for proper unmarshalling

According to our own instructions the genesis config attribute should be
"config". The genesis definition in the go code, however, has a field
called `ChainConfig`. This field now has a `json:"config"` struct tag so
that the json is properly unmarshalled.

This fixes #2482
parent 18580e15
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment