Skip to content

Commit 1fa3362

Browse files
core/forkid: add forkid test for holesky (#28193)
1 parent c2cfe35 commit 1fa3362

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/forkid/forkid_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,16 @@ func TestCreation(t *testing.T) {
107107
{1735372, 1677557088, ID{Hash: checksumToBytes(0xf7f9bc08), Next: 0}}, // First Shanghai block
108108
},
109109
},
110+
// Holesky test cases
111+
{
112+
params.HoleskyChainConfig,
113+
core.DefaultHoleskyGenesisBlock().ToBlock(),
114+
[]testcase{
115+
{0, 0, ID{Hash: checksumToBytes(0xc61a6098), Next: 1696000704}}, // Unsynced, last Frontier, Homestead, Tangerine, Spurious, Byzantium, Constantinople, Petersburg, Istanbul, Berlin, London, Paris block
116+
{123, 0, ID{Hash: checksumToBytes(0xc61a6098), Next: 1696000704}}, // First MergeNetsplit block
117+
{123, 1696000704, ID{Hash: checksumToBytes(0xfd4f016b), Next: 0}}, // Last MergeNetsplit block
118+
},
119+
},
110120
}
111121
for i, tt := range tests {
112122
for j, ttt := range tt.cases {

0 commit comments

Comments
 (0)