applyBlock
applyBlock(
vm
): (block
,opts
) =>Promise
<ApplyBlockResult
>
Validates and applies a block, computing the results of applying its transactions. This method doesn’t modify the block itself. It computes the block rewards and puts them on state (but doesn’t persist the changes).
Parameters
• vm: BaseVm
Returns
Function
Parameters
• block: Block
• opts: RunBlockOpts
Returns
Promise
<ApplyBlockResult
>