Skip to content

Commit 8319a93

Browse files
authored
Merge pull request #595 from etclabscore/feature/classic-spiral
Set Spiral classic activation block
2 parents 972a75f + fe7fcd7 commit 8319a93

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

core/forkid/forkid_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,11 @@ func TestCreation(t *testing.T) {
157157
{13_189_133, 0, ID{Hash: checksumToBytes(0x0f6bf187), Next: 14_525_000}},
158158
{13_189_134, 0, ID{Hash: checksumToBytes(0x0f6bf187), Next: 14_525_000}},
159159
{14_524_999, 0, ID{Hash: checksumToBytes(0x0f6bf187), Next: 14_525_000}},
160-
{14_525_000, 0, ID{Hash: checksumToBytes(0x7fd1bb25), Next: 0}},
161-
{14_525_001, 0, ID{Hash: checksumToBytes(0x7fd1bb25), Next: 0}},
160+
{14_525_000, 0, ID{Hash: checksumToBytes(0x7fd1bb25), Next: 19_250_000}},
161+
{14_525_001, 0, ID{Hash: checksumToBytes(0x7fd1bb25), Next: 19_250_000}},
162+
{19_249_999, 0, ID{Hash: checksumToBytes(0x7fd1bb25), Next: 19_250_000}},
163+
{19_250_000, 0, ID{Hash: checksumToBytes(0xbe46d57c), Next: 0}},
164+
{19_250_001, 0, ID{Hash: checksumToBytes(0xbe46d57c), Next: 0}},
162165
},
163166
},
164167
{
@@ -491,7 +494,7 @@ func TestGatherForks(t *testing.T) {
491494
{
492495
"classic",
493496
params.ClassicChainConfig,
494-
[]uint64{1150000, 2500000, 3000000, 5000000, 5900000, 8772000, 9573000, 10500839, 11_700_000, 13_189_133, 14_525_000},
497+
[]uint64{1150000, 2500000, 3000000, 5000000, 5900000, 8772000, 9573000, 10500839, 11_700_000, 13_189_133, 14_525_000, 19_250_000},
495498
[]uint64{},
496499
},
497500
{

params/config_classic.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ var (
9696

9797
// Spiral, aka Shanghai (partially)
9898
// EIP4399FBlock: nil, // Supplant DIFFICULTY with PREVRANDAO. ETC does not spec 4399 because it's still PoW, and 4399 is only applicable for the PoS system.
99-
EIP3651FBlock: nil, // Warm COINBASE (gas reprice)
100-
EIP3855FBlock: nil, // PUSH0 instruction
101-
EIP3860FBlock: nil, // Limit and meter initcode
99+
EIP3651FBlock: big.NewInt(19_250_000), // Warm COINBASE (gas reprice)
100+
EIP3855FBlock: big.NewInt(19_250_000), // PUSH0 instruction
101+
EIP3860FBlock: big.NewInt(19_250_000), // Limit and meter initcode
102102
// EIP4895FBlock: nil, // Beacon chain push withdrawals as operations
103-
EIP6049FBlock: nil, // Deprecate SELFDESTRUCT (noop)
103+
EIP6049FBlock: big.NewInt(19_250_000), // Deprecate SELFDESTRUCT (noop)
104104

105105
RequireBlockHashes: map[uint64]common.Hash{
106106
1920000: common.HexToHash("0x94365e3a8c0b35089c1d1195081fe7489b528a84b22199c916180db8b28ade7f"),

0 commit comments

Comments
 (0)