@@ -125,6 +125,36 @@ func TestCreation(t *testing.T) {
125125 {123 , 2740434112 , ID {Hash : checksumToBytes (0x0929e24e ), Next : 0 }}, // Future Prague block
126126 },
127127 },
128+ // Berachain mainnet test cases
129+ {
130+ params .BerachainChainConfig ,
131+ core .DefaultBerachainGenesisBlock ().ToBlock (),
132+ []testcase {
133+ {0 , 0 , ID {Hash : checksumToBytes (0xbb6c8bc0 ), Next : 1749056400 }}, // Unsynced, all forks active at genesis except Prague and Prague1/Prague2
134+ {100 , 1749056399 , ID {Hash : checksumToBytes (0xbb6c8bc0 ), Next : 1749056400 }}, // Before Prague fork
135+ {100 , 1749056400 , ID {Hash : checksumToBytes (0x3f78b127 ), Next : 1756915200 }}, // Prague active, before Prague1
136+ {100 , 1756915199 , ID {Hash : checksumToBytes (0x3f78b127 ), Next : 1756915200 }}, // Before Prague1
137+ {100 , 1756915200 , ID {Hash : checksumToBytes (0xd2ebecac ), Next : 1759248000 }}, // Prague1 active, before Prague2
138+ {100 , 1759247999 , ID {Hash : checksumToBytes (0xd2ebecac ), Next : 1759248000 }}, // Before Prague2
139+ {100 , 1759248000 , ID {Hash : checksumToBytes (0xcbbf6c9f ), Next : 0 }}, // Prague2 active
140+ {1000 , 2000000000 , ID {Hash : checksumToBytes (0xcbbf6c9f ), Next : 0 }}, // Far future
141+ },
142+ },
143+ // Bepolia testnet test cases
144+ {
145+ params .BepoliaChainConfig ,
146+ core .DefaultBepoliaGenesisBlock ().ToBlock (),
147+ []testcase {
148+ {0 , 0 , ID {Hash : checksumToBytes (0xae79530c ), Next : 1746633600 }}, // Unsynced, all forks active at genesis except Prague and Prague1/Prague2
149+ {100 , 1746633599 , ID {Hash : checksumToBytes (0xae79530c ), Next : 1746633600 }}, // Before Prague fork
150+ {100 , 1746633600 , ID {Hash : checksumToBytes (0xd07d9f27 ), Next : 1754496000 }}, // Prague active, before Prague1
151+ {100 , 1754495999 , ID {Hash : checksumToBytes (0xd07d9f27 ), Next : 1754496000 }}, // Before Prague1
152+ {100 , 1754496000 , ID {Hash : checksumToBytes (0x33153c0a ), Next : 1758124800 }}, // Prague1 active, before Prague2
153+ {100 , 1758124799 , ID {Hash : checksumToBytes (0x33153c0a ), Next : 1758124800 }}, // Before Prague2
154+ {100 , 1758124800 , ID {Hash : checksumToBytes (0x2edd8d57 ), Next : 0 }}, // Prague2 active
155+ {1000 , 2000000000 , ID {Hash : checksumToBytes (0x2edd8d57 ), Next : 0 }}, // Far future
156+ },
157+ },
128158 }
129159 for i , tt := range tests {
130160 for j , ttt := range tt .cases {
0 commit comments