aboutsummaryrefslogtreecommitdiffstats
path: root/test/keygen.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-01-13 16:21:17 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:21 +0800
commit56680e215e7e27ab8896d782876ee64881cae6ff (patch)
tree40daa411b7f1ee239b702ccc7987b6130892d7e6 /test/keygen.go
parentf82a81c6fa36c8ee6ba6a55e0662930c8f0d2658 (diff)
downloadgo-tangerine-56680e215e7e27ab8896d782876ee64881cae6ff.tar
go-tangerine-56680e215e7e27ab8896d782876ee64881cae6ff.tar.gz
go-tangerine-56680e215e7e27ab8896d782876ee64881cae6ff.tar.bz2
go-tangerine-56680e215e7e27ab8896d782876ee64881cae6ff.tar.lz
go-tangerine-56680e215e7e27ab8896d782876ee64881cae6ff.tar.xz
go-tangerine-56680e215e7e27ab8896d782876ee64881cae6ff.tar.zst
go-tangerine-56680e215e7e27ab8896d782876ee64881cae6ff.zip
consensus: implement DEXON cryptoeconomics v4.0 (#145)
Diffstat (limited to 'test/keygen.go')
-rw-r--r--test/keygen.go12
1 files changed, 2 insertions, 10 deletions
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)
}