diff options
Diffstat (limited to 'core/genesis.go')
-rw-r--r-- | core/genesis.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/genesis.go b/core/genesis.go index 08d4ae2d1..34725241e 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -58,10 +58,10 @@ type GenesisAlloc map[common.Address]GenesisAccount // GenesisAccount is an account in the state of the genesis block. type GenesisAccount struct { - Code []byte `json:"code" optional:"true"` - Storage map[common.Hash]common.Hash `json:"storage" optional:"true"` + Code []byte `json:"code,omitempty" optional:"true"` + Storage map[common.Hash]common.Hash `json:"storage,omitempty" optional:"true"` Balance *big.Int `json:"balance"` - Nonce uint64 `json:"nonce" optional:"true"` + Nonce uint64 `json:"nonce,omitempty" optional:"true"` } // field type overrides for gencodec |