aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-29 16:49:08 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit1e3905f62035b91c928667af236e0e6bf866792d (patch)
tree25735e66a96a5f6605111ed6c3df53b3ca783535 /cmd
parentdeafadd1ef999004c1ce8a2de8658abc141c53de (diff)
downloaddexon-1e3905f62035b91c928667af236e0e6bf866792d.tar
dexon-1e3905f62035b91c928667af236e0e6bf866792d.tar.gz
dexon-1e3905f62035b91c928667af236e0e6bf866792d.tar.bz2
dexon-1e3905f62035b91c928667af236e0e6bf866792d.tar.lz
dexon-1e3905f62035b91c928667af236e0e6bf866792d.tar.xz
dexon-1e3905f62035b91c928667af236e0e6bf866792d.tar.zst
dexon-1e3905f62035b91c928667af236e0e6bf866792d.zip
core: fix tests (#65)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gdex/dao_test.go2
-rw-r--r--cmd/gdex/genesis_test.go14
2 files changed, 8 insertions, 8 deletions
diff --git a/cmd/gdex/dao_test.go b/cmd/gdex/dao_test.go
index c4d3d0cc2..26572762c 100644
--- a/cmd/gdex/dao_test.go
+++ b/cmd/gdex/dao_test.go
@@ -127,7 +127,7 @@ func testDAOForkBlockNewChain(t *testing.T, test int, genesis string, expectBloc
}
defer db.Close()
- genesisHash := common.HexToHash("0x52b1459248252fcec3e9429362bdbc576c09515cfac0a87b278b2bf98d640c42")
+ genesisHash := common.HexToHash("0xc8e4d0c33d92b7751fe3747f778aa27600508c8c922be1dbbc7db6ee967f4e6c")
if genesis != "" {
genesisHash = daoGenesisHash
}
diff --git a/cmd/gdex/genesis_test.go b/cmd/gdex/genesis_test.go
index 38db9e0c4..9187a68bf 100644
--- a/cmd/gdex/genesis_test.go
+++ b/cmd/gdex/genesis_test.go
@@ -57,10 +57,10 @@ var customGenesisTests = []struct {
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00",
"config" : {
- "dexcon": {
- "lambdaBA": 250,
- },
- },
+ "dexcon": {
+ "lambdaBA": 250,
+ },
+ },
}`,
query: "eth.getBlock(0).nonce",
result: "0x0000000000000042",
@@ -81,9 +81,9 @@ var customGenesisTests = []struct {
"homesteadBlock" : 314,
"daoForkBlock" : 141,
"daoForkSupport" : true,
- "dexcon": {
- "lambdaBA": 250,
- },
+ "dexcon": {
+ "lambdaBA": 250,
+ },
},
}`,
query: "eth.getBlock(0).nonce",