aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorzsfelfoldi <zsfelfoldi@gmail.com>2015-04-14 22:01:25 +0800
committerzelig <viktor.tron@gmail.com>2015-04-20 03:57:49 +0800
commitd8fb834386caea0103fad8733f119b87238b75d3 (patch)
treeb426d1321e22afb9ee82926b1d7d8c408470b1a8 /core
parentdba2367157fc4ad7947ee1632dbe76d6a110f49f (diff)
downloadgo-tangerine-d8fb834386caea0103fad8733f119b87238b75d3.tar
go-tangerine-d8fb834386caea0103fad8733f119b87238b75d3.tar.gz
go-tangerine-d8fb834386caea0103fad8733f119b87238b75d3.tar.bz2
go-tangerine-d8fb834386caea0103fad8733f119b87238b75d3.tar.lz
go-tangerine-d8fb834386caea0103fad8733f119b87238b75d3.tar.xz
go-tangerine-d8fb834386caea0103fad8733f119b87238b75d3.tar.zst
go-tangerine-d8fb834386caea0103fad8733f119b87238b75d3.zip
test account is no longer permanently in genesis block, only put there when testing
Diffstat (limited to 'core')
-rw-r--r--core/genesis.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/core/genesis.go b/core/genesis.go
index 1159a5cec..0ce60054e 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(GenesisData, &accounts)
if err != nil {
fmt.Println("enable to decode genesis json data:", err)
os.Exit(1)
@@ -56,13 +56,7 @@ func GenesisBlock(db common.Database) *types.Block {
return genesis
}
-const (
- TestAccount = "e273f01c99144c438695e10f24926dc1f9fbf62d"
- TestBalance = "1000000000000"
-)
-
-var genesisData = []byte(`{
- "` + TestAccount + `": {"balance": "` + TestBalance + `"},
+var GenesisData = []byte(`{
"0000000000000000000000000000000000000001": {"balance": "1"},
"0000000000000000000000000000000000000002": {"balance": "1"},
"0000000000000000000000000000000000000003": {"balance": "1"},