diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-31 21:53:17 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-04 04:39:17 +0800 |
commit | b26f5e0bb7e8922c80bc3513d1ebce2c99a081f5 (patch) | |
tree | 941b22f81006fd88655fc3266debf9d2a556915d /core/genesis.go | |
parent | fa4aefee44c5dd32fb7e0d02960c1550e9c8a330 (diff) | |
download | go-tangerine-b26f5e0bb7e8922c80bc3513d1ebce2c99a081f5.tar.gz go-tangerine-b26f5e0bb7e8922c80bc3513d1ebce2c99a081f5.tar.zst go-tangerine-b26f5e0bb7e8922c80bc3513d1ebce2c99a081f5.zip |
types: block json unmarshal method added
Diffstat (limited to 'core/genesis.go')
-rw-r--r-- | core/genesis.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/genesis.go b/core/genesis.go index e72834822..a9b7339f3 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -36,7 +36,7 @@ func GenesisBlock(db common.Database) *types.Block { Balance string Code string } - err := json.Unmarshal(GenesisData, &accounts) + err := json.Unmarshal(GenesisAccounts, &accounts) if err != nil { fmt.Println("enable to decode genesis json data:", err) os.Exit(1) @@ -57,7 +57,7 @@ func GenesisBlock(db common.Database) *types.Block { return genesis } -var GenesisData = []byte(`{ +var GenesisAccounts = []byte(`{ "0000000000000000000000000000000000000001": {"balance": "1"}, "0000000000000000000000000000000000000002": {"balance": "1"}, "0000000000000000000000000000000000000003": {"balance": "1"}, |