Skip to content

Commit 9efccf2

Browse files
fjlshekhirin
authored andcommitted
core/forkid: fix issue in validation test (ethereum#26544)
This changes the test to match the comment description. Using timestampedConfig in this test case is incorrect, the comment says 'local is at Gray Glacier' and isn't aware of more forks.
1 parent a20b3b1 commit 9efccf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/forkid/forkid_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func TestValidation(t *testing.T) {
308308

309309
// Local is mainnet Gray Glacier, and isn't aware of more forks. Remote announces Gray Glacier +
310310
// 0xffffffff. Local needs software update, reject.
311-
{&timestampedConfig, 15050000, 0, ID{Hash: checksumToBytes(checksumUpdate(0xf0afd0e3, math.MaxUint64)), Next: 0}, ErrLocalIncompatibleOrStale},
311+
{params.MainnetChainConfig, 15050000, 0, ID{Hash: checksumToBytes(checksumUpdate(0xf0afd0e3, math.MaxUint64)), Next: 0}, ErrLocalIncompatibleOrStale},
312312

313313
// Local is mainnet Gray Glacier, and is aware of Shanghai. Remote announces Shanghai +
314314
// 0xffffffff. Local needs software update, reject.

0 commit comments

Comments
 (0)