Skip to content

Commit b043bd8

Browse files
committed
client -> VM execution: deactivate block validation on block execution (redundant)
1 parent ceb86af commit b043bd8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/client/lib/sync/execution/vmexecution.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ export class VMExecution extends Execution {
115115
this.hardfork = this.config.execCommon.setHardforkByBlockNumber(blockNumber)
116116
this.vm._updateOpcodes()
117117
}
118-
await this.vm.runBlock({ block, root: parentState })
118+
// Block validation is redundant here and leads to consistency problems
119+
// on PoA clique along blockchain-including validation checks
120+
// (signer states might have moved on when sync is ahead)
121+
await this.vm.runBlock({ block, root: parentState, skipBlockValidation: true })
119122
txCounter += block.transactions.length
120123
// set as new head block
121124
headBlock = block

0 commit comments

Comments
 (0)