Skip to content

Commit

Permalink
forkid,params: set 1099 etc mainnet activation number
Browse files Browse the repository at this point in the history
Signed-off-by: meows <b5c6@protonmail.com>
  • Loading branch information
meowsbits committed Oct 14, 2020
1 parent a3b5c76 commit ac18a9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 6 additions & 2 deletions core/forkid/forkid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ func TestCreation(t *testing.T) {
{9573000, ID{Hash: checksumToBytes(0x7ba22882), Next: 10500839}},
{9573001, ID{Hash: checksumToBytes(0x7ba22882), Next: 10500839}},
{10500838, ID{Hash: checksumToBytes(0x7ba22882), Next: 10500839}},
{10500839, ID{Hash: checksumToBytes(0x9007bfcc), Next: 0}},
{10500839, ID{Hash: checksumToBytes(0x9007bfcc), Next: 11_700_000}},
{10500840, ID{Hash: checksumToBytes(0x9007bfcc), Next: 11_700_000}},
{11_699_999, ID{Hash: checksumToBytes(0x9007bfcc), Next: 11_700_000}},
{11_700_000, ID{Hash: checksumToBytes(0xdb63a1ca), Next: 0}},
{11_700_001, ID{Hash: checksumToBytes(0xdb63a1ca), Next: 0}},
},
},
{
Expand Down Expand Up @@ -322,7 +326,7 @@ func TestGatherForks(t *testing.T) {
{
"classic",
params.ClassicChainConfig,
[]uint64{1150000, 2500000, 3000000, 5000000, 5900000, 8772000, 9573000, 10500839},
[]uint64{1150000, 2500000, 3000000, 5000000, 5900000, 8772000, 9573000, 10500839, 11_700_000},
},
{
"mainnet",
Expand Down
3 changes: 1 addition & 2 deletions params/config_classic.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package params

import (
"math"
"math/big"

"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -71,7 +70,7 @@ var (
EIP2028FBlock: big.NewInt(10_500_839),
EIP2200FBlock: big.NewInt(10_500_839), // RePetersburg (=~ re-1283)

ECIP1099FBlock: big.NewInt(math.MaxInt64), // Etchash (planned for block 11_700_000)
ECIP1099FBlock: big.NewInt(11_700_000), // Etchash (DAG size limit)

DisposalBlock: big.NewInt(5900000),
ECIP1017FBlock: big.NewInt(5000000),
Expand Down

0 comments on commit ac18a9c

Please sign in to comment.