Skip to content

Commit f52ff0f

Browse files
committed
cmd/geth: fix the fork orders for DAO tests
1 parent 890757f commit f52ff0f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cmd/geth/dao_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ var daoOldGenesis = `{
3939
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
4040
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
4141
"timestamp" : "0x00",
42-
"config" : {}
42+
"config" : {
43+
"homesteadBlock" : 0
44+
}
4345
}`
4446

4547
// Genesis block for nodes which actively oppose the DAO fork
@@ -54,6 +56,7 @@ var daoNoForkGenesis = `{
5456
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
5557
"timestamp" : "0x00",
5658
"config" : {
59+
"homesteadBlock" : 0,
5760
"daoForkBlock" : 314,
5861
"daoForkSupport" : false
5962
}
@@ -71,6 +74,7 @@ var daoProForkGenesis = `{
7174
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
7275
"timestamp" : "0x00",
7376
"config" : {
77+
"homesteadBlock" : 0,
7478
"daoForkBlock" : 314,
7579
"daoForkSupport" : true
7680
}

cmd/geth/genesis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var customGenesisTests = []struct {
5858
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
5959
"timestamp" : "0x00",
6060
"config" : {
61-
"homesteadBlock" : 314,
61+
"homesteadBlock" : 42,
6262
"daoForkBlock" : 141,
6363
"daoForkSupport" : true
6464
}

0 commit comments

Comments
 (0)