ethereumjs-monorepo

@ethereumjs/vm


@ethereumjs/vm / runBlock

Function: runBlock()

runBlock(vm, opts): Promise<RunBlockResult>

Defined in: vm/src/runBlock.ts:87

Processes the block running all of the transactions it contains and updating the miner’s account

vm method modifies the state if successfully executed and header fields are valid. state modifications will be reverted if an exception is raised during execution or validation.

Parameters

vm

VM

opts

RunBlockOpts

Default values for options:

Returns

Promise<RunBlockResult>