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>2019-04-09 21:32:54 +0800
commitb2c125c8c6acc1809182dc5bbddd3594fe05720b (patch)
tree5c5826c65471a228a9a288a2a0ffd26078e6513f /cmd
parentbd1b05d8ace3943cc262441c22d54488da1d6167 (diff)
downloaddexon-b2c125c8c6acc1809182dc5bbddd3594fe05720b.tar.gz
dexon-b2c125c8c6acc1809182dc5bbddd3594fe05720b.tar.zst
dexon-b2c125c8c6acc1809182dc5bbddd3594fe05720b.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",