@ethereumjs/vm / runBlock
runBlock(
vm
,opts
):Promise
<RunBlockResult
>
Defined in: vm/src/runBlock.ts:75
Processes the block
running all of the transactions it contains and updating the miner’s account
vm method modifies the state. If generate
is true
, the state modifications will be
reverted if an exception is raised. If it’s false
, it won’t revert if the block’s header is
invalid. If an error is thrown from an event handler, the state may or may not be reverted.
Default values for options:
generate
: falsePromise
<RunBlockResult
>