aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorzsfelfoldi <zsfelfoldi@gmail.com>2015-04-03 23:37:59 +0800
committerzelig <viktor.tron@gmail.com>2015-04-20 03:57:49 +0800
commite2d333d2095edb349388433c28f4d6a381b1df62 (patch)
tree2bc2dbf45ffeb1de93606122d263913d790d048f /core/genesis.go
parentac0e5e8b6de43a40bbc25f541aa2399202bbe420 (diff)
downloaddexon-e2d333d2095edb349388433c28f4d6a381b1df62.tar
dexon-e2d333d2095edb349388433c28f4d6a381b1df62.tar.gz
dexon-e2d333d2095edb349388433c28f4d6a381b1df62.tar.bz2
dexon-e2d333d2095edb349388433c28f4d6a381b1df62.tar.lz
dexon-e2d333d2095edb349388433c28f4d6a381b1df62.tar.xz
dexon-e2d333d2095edb349388433c28f4d6a381b1df62.tar.zst
dexon-e2d333d2095edb349388433c28f4d6a381b1df62.zip
NatSpec contracts in genesis block, end to end test (unfinished)
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/genesis.go b/core/genesis.go
index 8ef1e140f..14ac2ec0f 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -56,7 +56,15 @@ func GenesisBlock(db common.Database) *types.Block {
return genesis
}
+const (
+ TestAccount = "e273f01c99144c438695e10f24926dc1f9fbf62d"
+ TestBalance = "1000000000000000000"
+)
+
var genesisData = []byte(`{
+ "` + TestAccount + `": {"balance": "` + TestBalance + `"},
+ "` + ContractAddrURLhint + `": {"balance": "` + TestBalance + `", "code": "` + ContractCodeURLhint + `" },
+ "` + ContractAddrHashReg + `": {"balance": "` + TestBalance + `", "code": "` + ContractCodeHashReg + `" },
"0000000000000000000000000000000000000001": {"balance": "1"},
"0000000000000000000000000000000000000002": {"balance": "1"},
"0000000000000000000000000000000000000003": {"balance": "1"},