From 56680e215e7e27ab8896d782876ee64881cae6ff Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Sun, 13 Jan 2019 16:21:17 +0800 Subject: consensus: implement DEXON cryptoeconomics v4.0 (#145) --- test/keygen.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'test/keygen.go') diff --git a/test/keygen.go b/test/keygen.go index b98d70751..e7441e146 100644 --- a/test/keygen.go +++ b/test/keygen.go @@ -24,15 +24,7 @@ var preFundAddresss = []string{ } func main() { - data, err := ioutil.ReadFile(genesisFile) - if err != nil { - panic(err) - } - - genesis := new(core.Genesis) - if err := json.Unmarshal(data, &genesis); err != nil { - panic(err) - } + genesis := core.DefaultGenesisBlock() // Clear previous allocation. genesis.Alloc = make(map[common.Address]core.GenesisAccount) @@ -71,7 +63,7 @@ func main() { fmt.Printf("Created account %s\n", address.String()) } - data, err = json.MarshalIndent(genesis, "", " ") + data, err := json.MarshalIndent(genesis, "", " ") if err != nil { panic(err) } -- cgit v1.2.3