Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StubOracle ¶
type StubOracle struct { // Blocks maps block hash to eth.BlockInfo Blocks map[common.Hash]eth.BlockInfo // Txs maps block hash to transactions Txs map[common.Hash]types.Transactions // Rcpts maps Block hash to receipts Rcpts map[common.Hash]types.Receipts // contains filtered or unexported fields }
func NewStubOracle ¶
func NewStubOracle(t *testing.T) *StubOracle
func (StubOracle) HeaderByBlockHash ¶
func (o StubOracle) HeaderByBlockHash(blockHash common.Hash) eth.BlockInfo
func (StubOracle) ReceiptsByBlockHash ¶
func (StubOracle) TransactionsByBlockHash ¶
func (o StubOracle) TransactionsByBlockHash(blockHash common.Hash) (eth.BlockInfo, types.Transactions)
Click to show internal directories.
Click to hide internal directories.