Skip to content

Latest commit

 

History

History
118 lines (70 loc) · 3.33 KB

runblock.md

File metadata and controls

118 lines (70 loc) · 3.33 KB

@ethereumjs/vm / runBlock

Module: runBlock

Table of contents

References

Interfaces

Functions

References

EIP2930Receipt

Re-exports: EIP2930Receipt


PostByzantiumTxReceipt

Re-exports: PostByzantiumTxReceipt


PreByzantiumTxReceipt

Re-exports: PreByzantiumTxReceipt

Functions

calculateMinerReward

calculateMinerReward(minerReward: BN, ommersNum: number): BN

Parameters:

Name Type
minerReward BN
ommersNum number

Returns: BN

Defined in: runBlock.ts:315


encodeReceipt

encodeReceipt(tx: TypedTransaction, receipt: TxReceipt): Buffer

Returns the encoded tx receipt.

Parameters:

Name Type
tx TypedTransaction
receipt TxReceipt

Returns: Buffer

Defined in: runBlock.ts:337


generateTxReceipt

generateTxReceipt(tx: TypedTransaction, txRes: RunTxResult, blockGasUsed: BN): Promise<{ encodedReceipt: Buffer ; receiptLog: string ; txReceipt: PreByzantiumTxReceipt | PostByzantiumTxReceipt }>

Generates the tx receipt and returns { txReceipt, encodedReceipt, receiptLog }

deprecated Please use the new generateTxReceipt located in runTx.

Parameters:

Name Type
tx TypedTransaction
txRes RunTxResult
blockGasUsed BN

Returns: Promise<{ encodedReceipt: Buffer ; receiptLog: string ; txReceipt: PreByzantiumTxReceipt | PostByzantiumTxReceipt }>

Defined in: runBlock.ts:352


rewardAccount

rewardAccount(state: StateManager, address: Address, reward: BN): Promise<Account>

Parameters:

Name Type
state StateManager
address Address
reward BN

Returns: Promise<Account>

Defined in: runBlock.ts:323