commands

package
v0.0.0-...-92d349b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 58 Imported by: 0

Documentation

Index

Constants

View Source
const MaxUint16 = ^uint16(0)

const MaxUint = ^uint(0) const MaxUint64 = ^uint64(0)

Variables

This section is empty.

Functions

func CheckChangeSets

func CheckChangeSets(genesis *types.Genesis, logger log.Logger, blockNum uint64, chaindata string, historyfile string, nocheck bool, transactionV3 bool) error

CheckChangeSets re-executes historical transactions in read-only mode and checks that their outputs match the database ChangeSets.

func Erigon4

func Erigon4(genesis *types.Genesis, chainConfig *chain2.Config, logger log.Logger) error

func Execute

func Execute()

func History22

func History22(genesis *types.Genesis, logger log.Logger) error

func NewOpcodeTracer

func NewOpcodeTracer(blockNum uint64, saveOpcodes bool, saveBblocks bool) *opcodeTracer

func OpcodeTracer

func OpcodeTracer(genesis *types.Genesis, blockNum uint64, chaindata string, numBlocks uint64,
	saveOpcodes bool, saveBblocks bool) error

OpcodeTracer re-executes historical transactions in read-only mode and traces them at the opcode level

func StateRoot

func StateRoot(genesis *types.Genesis, logger log.Logger, blockNum uint64, datadir string) error

Types

type RetStackTop

type RetStackTop []uint32

type StateReaderV4

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

Implements StateReader and StateWriter

func (*StateReaderV4) ReadAccountCode

func (rw *StateReaderV4) ReadAccountCode(address libcommon.Address, incarnation uint64, codeHash libcommon.Hash) ([]byte, error)

func (*StateReaderV4) ReadAccountCodeSize

func (rw *StateReaderV4) ReadAccountCodeSize(address libcommon.Address, incarnation uint64, codeHash libcommon.Hash) (int, error)

func (*StateReaderV4) ReadAccountData

func (rw *StateReaderV4) ReadAccountData(address libcommon.Address) (*accounts.Account, error)

func (*StateReaderV4) ReadAccountIncarnation

func (rw *StateReaderV4) ReadAccountIncarnation(address libcommon.Address) (uint64, error)

func (*StateReaderV4) ReadAccountStorage

func (rw *StateReaderV4) ReadAccountStorage(address libcommon.Address, incarnation uint64, key *libcommon.Hash) ([]byte, error)

type StateWriterV4

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

func (*StateWriterV4) CreateContract

func (ww *StateWriterV4) CreateContract(address libcommon.Address) error

func (*StateWriterV4) DeleteAccount

func (ww *StateWriterV4) DeleteAccount(address libcommon.Address, original *accounts.Account) error

func (*StateWriterV4) UpdateAccountCode

func (ww *StateWriterV4) UpdateAccountCode(address libcommon.Address, incarnation uint64, codeHash libcommon.Hash, code []byte) error

func (*StateWriterV4) UpdateAccountData

func (ww *StateWriterV4) UpdateAccountData(address libcommon.Address, original, account *accounts.Account) error

func (*StateWriterV4) WriteAccountStorage

func (ww *StateWriterV4) WriteAccountStorage(address libcommon.Address, incarnation uint64, key *libcommon.Hash, original, value *uint256.Int) error

Jump to

Keyboard shortcuts

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