提交 c1a4dcfc 编写于 作者: J Jeffrey Wilcke

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
上级 18580e15
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册