Skip to content

Commit b44be5c

Browse files
holgerd77acolytec3jochem-brouwer
authored
Block: Fix Uncle Block Behind During HF Transition Test Runner Case (#3633)
* Set hardfork for block from RLP in blockchain test runner * vm: skip internal ethereum/tests tests * vm: fix HomesteadToDaoAt5 fork * update ethereum-tests to v14.1 * vm: re-remove unintended internal ethereum/tests tests --------- Co-authored-by: acolytec3 <[email protected]> Co-authored-by: Jochem Brouwer <[email protected]>
1 parent 89117cf commit b44be5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/ethereum-tests

Submodule ethereum-tests updated 105 files

packages/vm/test/tester/runners/BlockchainTestsRunner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export async function runBlockchainTest(options: any, testData: any, t: tape.Tes
190190
await blockBuilder.revert() // will only revert if checkpointed
191191
}
192192

193-
const block = createBlockFromRLP(blockRlp, { common })
193+
const block = createBlockFromRLP(blockRlp, { common, setHardfork: true })
194194
await blockchain.putBlock(block)
195195

196196
// This is a trick to avoid generating the canonical genesis
@@ -205,7 +205,7 @@ export async function runBlockchainTest(options: any, testData: any, t: tape.Tes
205205
const parentState = parentBlock.header.stateRoot
206206
// run block, update head if valid
207207
try {
208-
await runBlock(vm, { block, root: parentState })
208+
await runBlock(vm, { block, root: parentState, setHardfork: true })
209209
// set as new head block
210210
} catch (error: any) {
211211
// remove invalid block

0 commit comments

Comments
 (0)