Skip to content

Commit

Permalink
params: set Magneto activation block numbers for classic|mordor|kotti…
Browse files Browse the repository at this point in the history
… chains

Based on ethereumclassic/ECIPs#424
  • Loading branch information
ziogaschr authored and meowsbits committed May 27, 2021
1 parent a31540f commit fab5a9a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions params/config_classic.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ var (
EIP2028FBlock: big.NewInt(10_500_839),
EIP2200FBlock: big.NewInt(10_500_839), // RePetersburg (=~ re-1283)

// Berlin eq, aka Magneto
EIP2565FBlock: big.NewInt(13_189_133),
EIP2718FBlock: big.NewInt(13_189_133),
EIP2929FBlock: big.NewInt(13_189_133),
EIP2930FBlock: big.NewInt(13_189_133),

ECIP1099FBlock: big.NewInt(11_700_000), // Etchash (DAG size limit)

DisposalBlock: big.NewInt(5900000),
Expand Down Expand Up @@ -136,6 +142,12 @@ var (
EIP2028FBlock: big.NewInt(10),
EIP2200FBlock: big.NewInt(10), // RePetersburg (=~ re-1283)

// Berlin eq, aka Magneto
EIP2565FBlock: big.NewInt(11),
EIP2718FBlock: big.NewInt(11),
EIP2929FBlock: big.NewInt(11),
EIP2930FBlock: big.NewInt(11),

DisposalBlock: big.NewInt(5),
ECIP1017FBlock: big.NewInt(5),
ECIP1017EraRounds: big.NewInt(5000),
Expand Down
6 changes: 6 additions & 0 deletions params/config_kotti.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ var (
EIP2028FBlock: big.NewInt(2_200_013),
EIP2200FBlock: big.NewInt(2_200_013), // RePetersburg (== re-1283)

// Berlin eq, aka Magneto
EIP2565FBlock: big.NewInt(4_368_634),
EIP2718FBlock: big.NewInt(4_368_634),
EIP2929FBlock: big.NewInt(4_368_634),
EIP2930FBlock: big.NewInt(4_368_634),

RequireBlockHashes: map[uint64]common.Hash{
0: KottiGenesisHash,
/*
Expand Down
6 changes: 6 additions & 0 deletions params/config_mordor.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ var (
EIP2028FBlock: big.NewInt(999_983),
EIP2200FBlock: big.NewInt(999_983), // RePetersburg (== re-1283)

// Berlin eq, aka Magneto
EIP2565FBlock: big.NewInt(3_985_893),
EIP2718FBlock: big.NewInt(3_985_893),
EIP2929FBlock: big.NewInt(3_985_893),
EIP2930FBlock: big.NewInt(3_985_893),

ECIP1099FBlock: big.NewInt(2_520_000), // Etchash

DisposalBlock: big.NewInt(0),
Expand Down

0 comments on commit fab5a9a

Please sign in to comment.