adapter

package
v0.0.0-...-215623d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlockGetter

func NewBlockGetter(tx ethdb.Tx) *blockGetter

func NewChainContext

func NewChainContext(tx ethdb.Tx) *chainContext

Types

type BlockPropagator

type BlockPropagator func(ctx context.Context, block *types.Block, td *big.Int)

type StateReader

type StateReader struct {
	// contains filtered or unexported fields
}

func NewStateReader

func NewStateReader(tx ethdb.Tx, blockNr uint64) *StateReader

func (*StateReader) ReadAccountCode

func (r *StateReader) ReadAccountCode(address common.Address, incarnation uint64, codeHash common.Hash) ([]byte, error)

func (*StateReader) ReadAccountCodeSize

func (r *StateReader) ReadAccountCodeSize(address common.Address, incarnation uint64, codeHash common.Hash) (int, error)

func (*StateReader) ReadAccountData

func (r *StateReader) ReadAccountData(address common.Address) (*accounts.Account, error)

func (*StateReader) ReadAccountIncarnation

func (r *StateReader) ReadAccountIncarnation(address common.Address) (uint64, error)

func (*StateReader) ReadAccountStorage

func (r *StateReader) ReadAccountStorage(address common.Address, incarnation uint64, key *common.Hash) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL