From c1a4dcfc871f21ff1d7b2ce928a8108891cc4820 Mon Sep 17 00:00:00 2001 From: Jeffrey Wilcke Date: Mon, 25 Apr 2016 12:38:15 +0200 Subject: 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 --- core/genesis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/genesis.go b/core/genesis.go index 5c69b216c..40d799621 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -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 -- cgit