Skip to content

Commit 5395362

Browse files
authored
core/forkid: fix issue in validation test (#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 1bf1168 commit 5395362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/forkid/forkid_test.go

+1-1
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)