@ethereumjs/vm / RunBlockOpts
Defined in: vm/src/types.ts:252
Options for running a block.
block:
Block
Defined in: vm/src/types.ts:256
The @ethereumjs/block to process
optional
clearCache:boolean
Defined in: vm/src/types.ts:268
Clearing the StateManager cache.
If state root is not reset for whatever reason this can be set to false
for better performance.
Default: true
optional
generate:boolean
Defined in: vm/src/types.ts:275
Whether to generate the stateRoot and other related fields.
If true
, runBlock
will set the fields stateRoot
, receiptTrie
, gasUsed
, and bloom
(logs bloom) after running the block.
If false
, runBlock
throws if any fields do not match.
Defaults to false
.
optional
parentStateRoot:Uint8Array
<ArrayBufferLike
>
Defined in: vm/src/types.ts:280
The stateRoot of the parent. Used for verifying the witness proofs in the context of Verkle.
optional
reportPreimages:boolean
Defined in: vm/src/types.ts:321
If true, adds a hashedKey -> preimages mapping of all touched accounts
to the RunTxResult
returned.
optional
root:Uint8Array
<ArrayBufferLike
>
Defined in: vm/src/types.ts:260
Root of the state trie
optional
setHardfork:boolean
Defined in: vm/src/types.ts:315
Set the hardfork either by timestamp (for HFs from Shanghai onwards) or by block number for older Hfs.
Default: false
(HF is set to whatever default HF is set by the Common instance)
optional
skipBalance:boolean
Defined in: vm/src/types.ts:308
If true, checks the balance of the from
account for the transaction and sets its
balance equal equal to the upfront cost (gas limit * gas price + transaction value)
optional
skipBlockValidation:boolean
Defined in: vm/src/types.ts:287
If true, will skip “Block validation”: Block validation validates the header (with respect to the blockchain), the transactions, the transaction trie and the uncle hash.
optional
skipHardForkValidation:boolean
Defined in: vm/src/types.ts:292
If true, skips the hardfork validation of vm, block and tx
optional
skipHeaderValidation:boolean
Defined in: vm/src/types.ts:299
if true, will skip “Header validation” If the block has been picked from the blockchain to be executed, header has already been validated, and can be skipped especially when consensus of the chain has moved ahead.
optional
skipNonce:boolean
Defined in: vm/src/types.ts:303
If true, skips the nonce check