Documentation
¶
Index ¶
- func NewDeltaLoggerProxy(db state.StateDB, sink *DeltaLogSink) state.StateDB
- func NewLoggerProxy(db state.StateDB, log logger.Logger, output chan string, wg *sync.WaitGroup) state.StateDB
- func NewShadowProxy(prime, shadow state.StateDB, compareStateHash bool) state.StateDB
- type ContractLiveliness
- type DeletionProxy
- func (r *DeletionProxy) AccessEvents() *geth.AccessEvents
- func (r *DeletionProxy) AddAddressToAccessList(addr common.Address)
- func (r *DeletionProxy) AddBalance(addr common.Address, amount *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
- func (r *DeletionProxy) AddLog(log *types.Log)
- func (r *DeletionProxy) AddPreimage(addr common.Hash, image []byte)
- func (r *DeletionProxy) AddRefund(gas uint64)
- func (r *DeletionProxy) AddSlotToAccessList(addr common.Address, slot common.Hash)
- func (r *DeletionProxy) AddressInAccessList(addr common.Address) bool
- func (r *DeletionProxy) BeginBlock(number uint64) error
- func (r *DeletionProxy) BeginSyncPeriod(number uint64)
- func (r *DeletionProxy) BeginTransaction(number uint32) error
- func (r *DeletionProxy) Close() error
- func (r *DeletionProxy) Commit(block uint64, deleteEmptyObjects bool) (common.Hash, error)
- func (r *DeletionProxy) CreateAccount(addr common.Address)
- func (r *DeletionProxy) CreateContract(addr common.Address)
- func (r *DeletionProxy) Empty(addr common.Address) bool
- func (r *DeletionProxy) EndBlock() error
- func (r *DeletionProxy) EndSyncPeriod()
- func (r *DeletionProxy) EndTransaction() error
- func (r *DeletionProxy) Error() error
- func (r *DeletionProxy) Exist(addr common.Address) bool
- func (r *DeletionProxy) Finalise(deleteEmptyObjects bool)
- func (r *DeletionProxy) GetArchiveBlockHeight() (uint64, bool, error)
- func (r *DeletionProxy) GetArchiveState(block uint64) (state.NonCommittableStateDB, error)
- func (r *DeletionProxy) GetBalance(addr common.Address) *uint256.Int
- func (r *DeletionProxy) GetCode(addr common.Address) []byte
- func (r *DeletionProxy) GetCodeHash(addr common.Address) common.Hash
- func (r *DeletionProxy) GetCodeSize(addr common.Address) int
- func (r *DeletionProxy) GetCommittedState(addr common.Address, key common.Hash) common.Hash
- func (r *DeletionProxy) GetHash() (common.Hash, error)
- func (r *DeletionProxy) GetLogs(hash common.Hash, block uint64, blockHash common.Hash, blkTimestamp uint64) []*types.Log
- func (r *DeletionProxy) GetMemoryUsage() *state.MemoryUsage
- func (r *DeletionProxy) GetNonce(addr common.Address) uint64
- func (r *DeletionProxy) GetRefund() uint64
- func (r *DeletionProxy) GetShadowDB() state.StateDB
- func (r *DeletionProxy) GetState(addr common.Address, key common.Hash) common.Hash
- func (r *DeletionProxy) GetStateAndCommittedState(addr common.Address, key common.Hash) (common.Hash, common.Hash)
- func (r *DeletionProxy) GetStorageRoot(addr common.Address) common.Hash
- func (r *DeletionProxy) GetSubstatePostAlloc() txcontext.WorldState
- func (r *DeletionProxy) GetTransientState(addr common.Address, key common.Hash) common.Hash
- func (r *DeletionProxy) HasSelfDestructed(addr common.Address) bool
- func (r *DeletionProxy) IntermediateRoot(deleteEmptyObjects bool) common.Hash
- func (r *DeletionProxy) PointCache() *utils.PointCache
- func (r *DeletionProxy) Prepare(rules params.Rules, sender, coinbase common.Address, dest *common.Address, ...)
- func (r *DeletionProxy) PrepareSubstate(substate txcontext.WorldState, block uint64)
- func (r *DeletionProxy) RevertToSnapshot(snapshot int)
- func (r *DeletionProxy) SelfDestruct(addr common.Address) uint256.Int
- func (r *DeletionProxy) SelfDestruct6780(addr common.Address) (uint256.Int, bool)
- func (r *DeletionProxy) SetCode(addr common.Address, code []byte, reason tracing.CodeChangeReason) []byte
- func (r *DeletionProxy) SetNonce(addr common.Address, nonce uint64, reason tracing.NonceChangeReason)
- func (r *DeletionProxy) SetState(addr common.Address, key common.Hash, value common.Hash) common.Hash
- func (r *DeletionProxy) SetTransientState(addr common.Address, key common.Hash, value common.Hash)
- func (r *DeletionProxy) SetTxContext(thash common.Hash, ti int)
- func (r *DeletionProxy) SlotInAccessList(addr common.Address, slot common.Hash) (bool, bool)
- func (r *DeletionProxy) Snapshot() int
- func (r *DeletionProxy) StartBulkLoad(uint64) (state.BulkLoad, error)
- func (r *DeletionProxy) SubBalance(addr common.Address, amount *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
- func (r *DeletionProxy) SubRefund(gas uint64)
- func (r *DeletionProxy) Witness() *stateless.Witness
- type DeltaLogSink
- type DeltaLoggingStateDB
- func (s *DeltaLoggingStateDB) AccessEvents() *geth.AccessEvents
- func (s *DeltaLoggingStateDB) AddAddressToAccessList(addr common.Address)
- func (s *DeltaLoggingStateDB) AddBalance(addr common.Address, value *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
- func (s *DeltaLoggingStateDB) AddLog(entry *types.Log)
- func (s *DeltaLoggingStateDB) AddPreimage(hash common.Hash, data []byte)
- func (s *DeltaLoggingStateDB) AddRefund(amount uint64)
- func (s *DeltaLoggingStateDB) AddSlotToAccessList(addr common.Address, slot common.Hash)
- func (s *DeltaLoggingStateDB) AddressInAccessList(addr common.Address) bool
- func (s *DeltaLoggingStateDB) BeginBlock(blk uint64) error
- func (s *DeltaLoggingStateDB) BeginSyncPeriod(number uint64)
- func (s *DeltaLoggingStateDB) BeginTransaction(tx uint32) error
- func (s *DeltaLoggingStateDB) Close() error
- func (s *DeltaLoggingStateDB) Commit(block uint64, deleteEmptyObjects bool) (common.Hash, error)
- func (s *DeltaLoggingStateDB) CreateAccount(addr common.Address)
- func (s *DeltaLoggingStateDB) CreateContract(addr common.Address)
- func (s *DeltaLoggingStateDB) Empty(addr common.Address) bool
- func (s *DeltaLoggingStateDB) EndBlock() error
- func (s *DeltaLoggingStateDB) EndSyncPeriod()
- func (s *DeltaLoggingStateDB) EndTransaction() error
- func (s *DeltaLoggingStateDB) Error() error
- func (s *DeltaLoggingStateDB) Exist(addr common.Address) bool
- func (s *DeltaLoggingStateDB) Finalise(deleteEmptyObjects bool)
- func (s *DeltaLoggingStateDB) GetArchiveBlockHeight() (uint64, bool, error)
- func (s *DeltaLoggingStateDB) GetArchiveState(block uint64) (state.NonCommittableStateDB, error)
- func (s *DeltaLoggingStateDB) GetBalance(addr common.Address) *uint256.Int
- func (s *DeltaLoggingStateDB) GetCode(addr common.Address) []byte
- func (s *DeltaLoggingStateDB) GetCodeHash(addr common.Address) common.Hash
- func (s *DeltaLoggingStateDB) GetCodeSize(addr common.Address) int
- func (s *DeltaLoggingStateDB) GetCommittedState(addr common.Address, key common.Hash) common.Hash
- func (s *DeltaLoggingStateDB) GetHash() (common.Hash, error)
- func (s *DeltaLoggingStateDB) GetLogs(hash common.Hash, block uint64, blockHash common.Hash, blkTimestamp uint64) []*types.Log
- func (s *DeltaLoggingStateDB) GetMemoryUsage() *state.MemoryUsage
- func (s *DeltaLoggingStateDB) GetNonce(addr common.Address) uint64
- func (s *DeltaLoggingStateDB) GetRefund() uint64
- func (s *DeltaLoggingStateDB) GetShadowDB() state.StateDB
- func (s *DeltaLoggingStateDB) GetState(addr common.Address, key common.Hash) common.Hash
- func (s *DeltaLoggingStateDB) GetStateAndCommittedState(addr common.Address, key common.Hash) (common.Hash, common.Hash)
- func (s *DeltaLoggingStateDB) GetStorageRoot(addr common.Address) common.Hash
- func (s *DeltaLoggingStateDB) GetSubstatePostAlloc() txcontext.WorldState
- func (s *DeltaLoggingStateDB) GetTransientState(addr common.Address, key common.Hash) common.Hash
- func (s *DeltaLoggingStateDB) HasSelfDestructed(addr common.Address) bool
- func (s *DeltaLoggingStateDB) IntermediateRoot(deleteEmptyObjects bool) common.Hash
- func (s *DeltaLoggingStateDB) PointCache() *utils.PointCache
- func (s *DeltaLoggingStateDB) Prepare(rules params.Rules, sender, coinbase common.Address, dest *common.Address, ...)
- func (s *DeltaLoggingStateDB) PrepareSubstate(substate txcontext.WorldState, block uint64)
- func (s *DeltaLoggingStateDB) RevertToSnapshot(id int)
- func (s *DeltaLoggingStateDB) SelfDestruct(addr common.Address) uint256.Int
- func (s *DeltaLoggingStateDB) SelfDestruct6780(addr common.Address) (uint256.Int, bool)
- func (s *DeltaLoggingStateDB) SetCode(addr common.Address, code []byte, reason tracing.CodeChangeReason) []byte
- func (s *DeltaLoggingStateDB) SetNonce(addr common.Address, nonce uint64, reason tracing.NonceChangeReason)
- func (s *DeltaLoggingStateDB) SetState(addr common.Address, key common.Hash, value common.Hash) common.Hash
- func (s *DeltaLoggingStateDB) SetTransientState(addr common.Address, key common.Hash, value common.Hash)
- func (s *DeltaLoggingStateDB) SetTxContext(thash common.Hash, ti int)
- func (s *DeltaLoggingStateDB) SlotInAccessList(addr common.Address, slot common.Hash) (addressOk bool, slotOk bool)
- func (s *DeltaLoggingStateDB) Snapshot() int
- func (s *DeltaLoggingStateDB) StartBulkLoad(block uint64) (state.BulkLoad, error)
- func (s *DeltaLoggingStateDB) SubBalance(addr common.Address, value *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
- func (s *DeltaLoggingStateDB) SubRefund(amount uint64)
- func (s *DeltaLoggingStateDB) Witness() *stateless.Witness
- type LoggingStateDb
- func (s *LoggingStateDb) AccessEvents() *geth.AccessEvents
- func (s *LoggingStateDb) AddAddressToAccessList(addr common.Address)
- func (s *LoggingStateDb) AddBalance(addr common.Address, value *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
- func (s *LoggingStateDb) AddLog(entry *types.Log)
- func (s *LoggingStateDb) AddPreimage(hash common.Hash, data []byte)
- func (s *LoggingStateDb) AddRefund(amount uint64)
- func (s *LoggingStateDb) AddSlotToAccessList(addr common.Address, slot common.Hash)
- func (s *LoggingStateDb) AddressInAccessList(addr common.Address) bool
- func (s *LoggingStateDb) BeginBlock(blk uint64) error
- func (s *LoggingStateDb) BeginSyncPeriod(number uint64)
- func (s *LoggingStateDb) BeginTransaction(tx uint32) error
- func (s *LoggingStateDb) Close() error
- func (s *LoggingStateDb) Commit(block uint64, deleteEmptyObjects bool) (common.Hash, error)
- func (s *LoggingStateDb) CreateAccount(addr common.Address)
- func (s *LoggingStateDb) CreateContract(addr common.Address)
- func (s *LoggingStateDb) Empty(addr common.Address) bool
- func (s *LoggingStateDb) EndBlock() error
- func (s *LoggingStateDb) EndSyncPeriod()
- func (s *LoggingStateDb) EndTransaction() error
- func (s *LoggingStateDb) Error() error
- func (s *LoggingStateDb) Exist(addr common.Address) bool
- func (s *LoggingStateDb) Finalise(deleteEmptyObjects bool)
- func (s *LoggingStateDb) GetArchiveBlockHeight() (uint64, bool, error)
- func (s *LoggingStateDb) GetArchiveState(block uint64) (state.NonCommittableStateDB, error)
- func (s *LoggingStateDb) GetBalance(addr common.Address) *uint256.Int
- func (s *LoggingStateDb) GetCode(addr common.Address) []byte
- func (s *LoggingStateDb) GetCodeHash(addr common.Address) common.Hash
- func (s *LoggingStateDb) GetCodeSize(addr common.Address) int
- func (s *LoggingStateDb) GetCommittedState(addr common.Address, key common.Hash) common.Hash
- func (s *LoggingStateDb) GetHash() (common.Hash, error)
- func (s *LoggingStateDb) GetLogs(hash common.Hash, block uint64, blockHash common.Hash, blkTimestamp uint64) []*types.Log
- func (s *LoggingStateDb) GetMemoryUsage() *state.MemoryUsage
- func (s *LoggingStateDb) GetNonce(addr common.Address) uint64
- func (s *LoggingStateDb) GetRefund() uint64
- func (s *LoggingStateDb) GetShadowDB() state.StateDB
- func (s *LoggingStateDb) GetState(addr common.Address, key common.Hash) common.Hash
- func (s *LoggingStateDb) GetStateAndCommittedState(addr common.Address, key common.Hash) (common.Hash, common.Hash)
- func (s *LoggingStateDb) GetStorageRoot(addr common.Address) common.Hash
- func (s *LoggingStateDb) GetSubstatePostAlloc() txcontext.WorldState
- func (s *LoggingStateDb) GetTransientState(addr common.Address, key common.Hash) common.Hash
- func (s *LoggingStateDb) HasSelfDestructed(addr common.Address) bool
- func (s *LoggingStateDb) IntermediateRoot(deleteEmptyObjects bool) common.Hash
- func (s *LoggingStateDb) PointCache() *utils.PointCache
- func (s *LoggingStateDb) Prepare(rules params.Rules, sender, coinbase common.Address, dest *common.Address, ...)
- func (s *LoggingStateDb) PrepareSubstate(substate txcontext.WorldState, block uint64)
- func (s *LoggingStateDb) RevertToSnapshot(id int)
- func (s *LoggingStateDb) SelfDestruct(addr common.Address) uint256.Int
- func (s *LoggingStateDb) SelfDestruct6780(addr common.Address) (uint256.Int, bool)
- func (s *LoggingStateDb) SetCode(addr common.Address, code []byte, reason tracing.CodeChangeReason) []byte
- func (s *LoggingStateDb) SetNonce(addr common.Address, value uint64, reason tracing.NonceChangeReason)
- func (s *LoggingStateDb) SetState(addr common.Address, key common.Hash, value common.Hash) common.Hash
- func (s *LoggingStateDb) SetTransientState(addr common.Address, key common.Hash, value common.Hash)
- func (s *LoggingStateDb) SetTxContext(thash common.Hash, ti int)
- func (s *LoggingStateDb) SlotInAccessList(addr common.Address, slot common.Hash) (addressOk bool, slotOk bool)
- func (s *LoggingStateDb) Snapshot() int
- func (s *LoggingStateDb) StartBulkLoad(block uint64) (state.BulkLoad, error)
- func (s *LoggingStateDb) SubBalance(addr common.Address, value *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
- func (s *LoggingStateDb) SubRefund(amount uint64)
- func (s *LoggingStateDb) Witness() *stateless.Witness
- type ProfilerProxy
- func (p *ProfilerProxy) AccessEvents() *geth.AccessEvents
- func (p *ProfilerProxy) AddAddressToAccessList(addr common.Address)
- func (p *ProfilerProxy) AddBalance(addr common.Address, amount *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
- func (p *ProfilerProxy) AddLog(log *types.Log)
- func (p *ProfilerProxy) AddPreimage(addr common.Hash, image []byte)
- func (p *ProfilerProxy) AddRefund(gas uint64)
- func (p *ProfilerProxy) AddSlotToAccessList(addr common.Address, slot common.Hash)
- func (p *ProfilerProxy) AddressInAccessList(addr common.Address) bool
- func (p *ProfilerProxy) BeginBlock(number uint64) error
- func (p *ProfilerProxy) BeginSyncPeriod(number uint64)
- func (p *ProfilerProxy) BeginTransaction(number uint32) error
- func (p *ProfilerProxy) Close() error
- func (p *ProfilerProxy) Commit(block uint64, deleteEmptyObjects bool) (common.Hash, error)
- func (p *ProfilerProxy) CreateAccount(addr common.Address)
- func (p *ProfilerProxy) CreateContract(addr common.Address)
- func (p *ProfilerProxy) Empty(addr common.Address) bool
- func (p *ProfilerProxy) EndBlock() error
- func (p *ProfilerProxy) EndSyncPeriod()
- func (p *ProfilerProxy) EndTransaction() error
- func (p *ProfilerProxy) Error() error
- func (p *ProfilerProxy) Exist(addr common.Address) bool
- func (p *ProfilerProxy) Finalise(deleteEmptyObjects bool)
- func (p *ProfilerProxy) GetArchiveBlockHeight() (uint64, bool, error)
- func (p *ProfilerProxy) GetArchiveState(block uint64) (state.NonCommittableStateDB, error)
- func (p *ProfilerProxy) GetBalance(addr common.Address) *uint256.Int
- func (p *ProfilerProxy) GetCode(addr common.Address) []byte
- func (p *ProfilerProxy) GetCodeHash(addr common.Address) common.Hash
- func (p *ProfilerProxy) GetCodeSize(addr common.Address) int
- func (p *ProfilerProxy) GetCommittedState(addr common.Address, key common.Hash) common.Hash
- func (p *ProfilerProxy) GetHash() (common.Hash, error)
- func (p *ProfilerProxy) GetLogs(hash common.Hash, block uint64, blockHash common.Hash, blkTimestamp uint64) []*types.Log
- func (p *ProfilerProxy) GetMemoryUsage() *state.MemoryUsage
- func (p *ProfilerProxy) GetNonce(addr common.Address) uint64
- func (p *ProfilerProxy) GetRefund() uint64
- func (p *ProfilerProxy) GetShadowDB() state.StateDB
- func (p *ProfilerProxy) GetState(addr common.Address, key common.Hash) common.Hash
- func (p *ProfilerProxy) GetStateAndCommittedState(addr common.Address, key common.Hash) (common.Hash, common.Hash)
- func (p *ProfilerProxy) GetStorageRoot(addr common.Address) common.Hash
- func (p *ProfilerProxy) GetSubstatePostAlloc() txcontext.WorldState
- func (p *ProfilerProxy) GetTransientState(addr common.Address, key common.Hash) common.Hash
- func (p *ProfilerProxy) HasSelfDestructed(addr common.Address) bool
- func (p *ProfilerProxy) IntermediateRoot(deleteEmptyObjects bool) common.Hash
- func (p *ProfilerProxy) PointCache() *utils.PointCache
- func (p *ProfilerProxy) Prepare(rules params.Rules, sender, coinbase common.Address, dest *common.Address, ...)
- func (p *ProfilerProxy) PrepareSubstate(substate txcontext.WorldState, block uint64)
- func (p *ProfilerProxy) RevertToSnapshot(snapshot int)
- func (p *ProfilerProxy) SelfDestruct(addr common.Address) uint256.Int
- func (p *ProfilerProxy) SelfDestruct6780(addr common.Address) (uint256.Int, bool)
- func (p *ProfilerProxy) SetCode(addr common.Address, code []byte, reason tracing.CodeChangeReason) []byte
- func (p *ProfilerProxy) SetNonce(addr common.Address, nonce uint64, reason tracing.NonceChangeReason)
- func (p *ProfilerProxy) SetState(addr common.Address, key common.Hash, value common.Hash) common.Hash
- func (p *ProfilerProxy) SetTransientState(addr common.Address, key common.Hash, value common.Hash)
- func (p *ProfilerProxy) SetTxContext(thash common.Hash, ti int)
- func (p *ProfilerProxy) SlotInAccessList(addr common.Address, slot common.Hash) (bool, bool)
- func (p *ProfilerProxy) Snapshot() int
- func (p *ProfilerProxy) StartBulkLoad(block uint64) (state.BulkLoad, error)
- func (p *ProfilerProxy) SubBalance(addr common.Address, amount *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
- func (p *ProfilerProxy) SubRefund(gas uint64)
- func (p *ProfilerProxy) Witness() *stateless.Witness
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeltaLoggerProxy ¶
func NewDeltaLoggerProxy(db state.StateDB, sink *DeltaLogSink) state.StateDB
NewDeltaLoggerProxy wraps the given StateDB with the delta logger.
func NewLoggerProxy ¶
func NewLoggerProxy(db state.StateDB, log logger.Logger, output chan string, wg *sync.WaitGroup) state.StateDB
NewLoggerProxy wraps the given StateDB instance into a logging wrapper causing every StateDB operation (except BulkLoading) to be logged for debugging.
func NewShadowProxy ¶
NewShadowProxy creates a StateDB instance bundling two other instances and running each operation on both of them, cross checking results. If the results are not equal, an error is logged and the result of the primary instance is returned.
Types ¶
type ContractLiveliness ¶
type DeletionProxy ¶
type DeletionProxy struct {
// contains filtered or unexported fields
}
DeletionProxy data structure for capturing and recording invoked StateDB operations.
func NewDeletionProxy ¶
func NewDeletionProxy(db state.StateDB, ch chan ContractLiveliness, logLevel string) *DeletionProxy
NewDeletionProxy creates a new StateDB proxy.
func (*DeletionProxy) AccessEvents ¶
func (r *DeletionProxy) AccessEvents() *geth.AccessEvents
func (*DeletionProxy) AddAddressToAccessList ¶
func (r *DeletionProxy) AddAddressToAccessList(addr common.Address)
AddAddressToAccessList adds an address to the access list.
func (*DeletionProxy) AddBalance ¶
func (r *DeletionProxy) AddBalance(addr common.Address, amount *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
AddBalance adds amount to a contract address.
func (*DeletionProxy) AddLog ¶
func (r *DeletionProxy) AddLog(log *types.Log)
AddLog adds a log entry.
func (*DeletionProxy) AddPreimage ¶
func (r *DeletionProxy) AddPreimage(addr common.Hash, image []byte)
AddPreimage adds a SHA3 preimage.
func (*DeletionProxy) AddRefund ¶
func (r *DeletionProxy) AddRefund(gas uint64)
AddRefund adds gas to the refund counter.
func (*DeletionProxy) AddSlotToAccessList ¶
func (r *DeletionProxy) AddSlotToAccessList(addr common.Address, slot common.Hash)
AddSlotToAccessList adds the given (address, slot)-tuple to the access list
func (*DeletionProxy) AddressInAccessList ¶
func (r *DeletionProxy) AddressInAccessList(addr common.Address) bool
AddressInAccessList checks whether an address is in the access list.
func (*DeletionProxy) BeginBlock ¶
func (r *DeletionProxy) BeginBlock(number uint64) error
func (*DeletionProxy) BeginSyncPeriod ¶
func (r *DeletionProxy) BeginSyncPeriod(number uint64)
func (*DeletionProxy) BeginTransaction ¶
func (r *DeletionProxy) BeginTransaction(number uint32) error
func (*DeletionProxy) Close ¶
func (r *DeletionProxy) Close() error
func (*DeletionProxy) CreateAccount ¶
func (r *DeletionProxy) CreateAccount(addr common.Address)
CreateAccount creates a new account.
func (*DeletionProxy) CreateContract ¶
func (r *DeletionProxy) CreateContract(addr common.Address)
func (*DeletionProxy) Empty ¶
func (r *DeletionProxy) Empty(addr common.Address) bool
Empty checks whether the contract is either non-existent or empty according to the EIP161 specification (balance = nonce = code = 0).
func (*DeletionProxy) EndBlock ¶
func (r *DeletionProxy) EndBlock() error
func (*DeletionProxy) EndSyncPeriod ¶
func (r *DeletionProxy) EndSyncPeriod()
func (*DeletionProxy) EndTransaction ¶
func (r *DeletionProxy) EndTransaction() error
func (*DeletionProxy) Error ¶
func (r *DeletionProxy) Error() error
func (*DeletionProxy) Exist ¶
func (r *DeletionProxy) Exist(addr common.Address) bool
Exist checks whether the contract exists in the StateDB. Notably this also returns true for suicided accounts.
func (*DeletionProxy) Finalise ¶
func (r *DeletionProxy) Finalise(deleteEmptyObjects bool)
Finalise the state in StateDB.
func (*DeletionProxy) GetArchiveBlockHeight ¶
func (r *DeletionProxy) GetArchiveBlockHeight() (uint64, bool, error)
func (*DeletionProxy) GetArchiveState ¶
func (r *DeletionProxy) GetArchiveState(block uint64) (state.NonCommittableStateDB, error)
func (*DeletionProxy) GetBalance ¶
func (r *DeletionProxy) GetBalance(addr common.Address) *uint256.Int
GetBalance retrieves the amount of a contract address.
func (*DeletionProxy) GetCode ¶
func (r *DeletionProxy) GetCode(addr common.Address) []byte
GetCode returns the EVM bytecode of a contract.
func (*DeletionProxy) GetCodeHash ¶
func (r *DeletionProxy) GetCodeHash(addr common.Address) common.Hash
GetCodeHash returns the hash of the EVM bytecode.
func (*DeletionProxy) GetCodeSize ¶
func (r *DeletionProxy) GetCodeSize(addr common.Address) int
GetCodeSize returns the EVM bytecode's size.
func (*DeletionProxy) GetCommittedState ¶
GetCommittedState retrieves a value that is already committed.
func (*DeletionProxy) GetLogs ¶
func (r *DeletionProxy) GetLogs(hash common.Hash, block uint64, blockHash common.Hash, blkTimestamp uint64) []*types.Log
GetLogs retrieves log entries.
func (*DeletionProxy) GetMemoryUsage ¶
func (r *DeletionProxy) GetMemoryUsage() *state.MemoryUsage
func (*DeletionProxy) GetNonce ¶
func (r *DeletionProxy) GetNonce(addr common.Address) uint64
GetNonce retrieves the nonce of a contract address.
func (*DeletionProxy) GetRefund ¶
func (r *DeletionProxy) GetRefund() uint64
GetRefund returns the current value of the refund counter.
func (*DeletionProxy) GetShadowDB ¶
func (r *DeletionProxy) GetShadowDB() state.StateDB
func (*DeletionProxy) GetStateAndCommittedState ¶
func (*DeletionProxy) GetStorageRoot ¶
func (r *DeletionProxy) GetStorageRoot(addr common.Address) common.Hash
func (*DeletionProxy) GetSubstatePostAlloc ¶
func (r *DeletionProxy) GetSubstatePostAlloc() txcontext.WorldState
GetSubstatePostAlloc gets substate post allocation.
func (*DeletionProxy) GetTransientState ¶
func (*DeletionProxy) HasSelfDestructed ¶
func (r *DeletionProxy) HasSelfDestructed(addr common.Address) bool
HasSelfDestructed checks whether a contract has been suicided.
func (*DeletionProxy) IntermediateRoot ¶
func (r *DeletionProxy) IntermediateRoot(deleteEmptyObjects bool) common.Hash
IntermediateRoot computes the current hash of the StateDB. It is called in between transactions to get the root hash that goes into transaction receipts.
func (*DeletionProxy) PointCache ¶
func (r *DeletionProxy) PointCache() *utils.PointCache
PointCache returns the point cache used in computations.
func (*DeletionProxy) Prepare ¶
func (r *DeletionProxy) Prepare(rules params.Rules, sender, coinbase common.Address, dest *common.Address, precompiles []common.Address, txAccesses types.AccessList)
Prepare handles the preparatory steps for executing a state transition with regards to both EIP-2929 and EIP-2930:
- Add sender to access list (2929) - Add destination to access list (2929) - Add precompiles to access list (2929) - Add the contents of the optional tx access list (2930)
This method should only be called if Berlin/2929+2930 is applicable at the current number.
func (*DeletionProxy) PrepareSubstate ¶
func (r *DeletionProxy) PrepareSubstate(substate txcontext.WorldState, block uint64)
func (*DeletionProxy) RevertToSnapshot ¶
func (r *DeletionProxy) RevertToSnapshot(snapshot int)
RevertToSnapshot reverts all state changes from a given revision.
func (*DeletionProxy) SelfDestruct ¶
func (r *DeletionProxy) SelfDestruct(addr common.Address) uint256.Int
SelfDestruct marks the given account as suicided. This clears the account balance. The account is still available until the state is committed; return a non-nil account after SelfDestruct.
func (*DeletionProxy) SelfDestruct6780 ¶
func (*DeletionProxy) SetCode ¶
func (r *DeletionProxy) SetCode(addr common.Address, code []byte, reason tracing.CodeChangeReason) []byte
SetCode sets the EVM bytecode of a contract.
func (*DeletionProxy) SetNonce ¶
func (r *DeletionProxy) SetNonce(addr common.Address, nonce uint64, reason tracing.NonceChangeReason)
SetNonce sets the nonce of a contract address.
func (*DeletionProxy) SetState ¶
func (r *DeletionProxy) SetState(addr common.Address, key common.Hash, value common.Hash) common.Hash
SetState sets a value in the StateDB.
func (*DeletionProxy) SetTransientState ¶
func (*DeletionProxy) SetTxContext ¶
func (r *DeletionProxy) SetTxContext(thash common.Hash, ti int)
Prepare sets the current transaction hash and index.
func (*DeletionProxy) SlotInAccessList ¶
SlotInAccessList checks whether the (address, slot)-tuple is in the access list.
func (*DeletionProxy) Snapshot ¶
func (r *DeletionProxy) Snapshot() int
Snapshot returns an identifier for the current revision of the state.
func (*DeletionProxy) StartBulkLoad ¶
func (r *DeletionProxy) StartBulkLoad(uint64) (state.BulkLoad, error)
func (*DeletionProxy) SubBalance ¶
func (r *DeletionProxy) SubBalance(addr common.Address, amount *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
SubBalance subtracts amount from a contract address.
func (*DeletionProxy) SubRefund ¶
func (r *DeletionProxy) SubRefund(gas uint64)
SubRefund subtracts gas to the refund counter.
func (*DeletionProxy) Witness ¶
func (r *DeletionProxy) Witness() *stateless.Witness
Witness retrieves the current state witness.
type DeltaLogSink ¶
type DeltaLogSink struct {
// contains filtered or unexported fields
}
DeltaLogSink writes textual operations to disk in the format expected by the delta debugger.
func NewDeltaLogSink ¶
NewDeltaLogSink creates a sink that logs to the provided writer and logger.
func (*DeltaLogSink) Close ¶
func (s *DeltaLogSink) Close() error
Close flushes and closes the underlying writer/closer.
func (*DeltaLogSink) Flush ¶
func (s *DeltaLogSink) Flush() error
Flush flushes buffered data and fsyncs when supported by the closer.
func (*DeltaLogSink) Logf ¶
func (s *DeltaLogSink) Logf(format string, args ...any)
Logf writes the formatted message to the sink and flushes immediately so the last operation is present even if the process crashes.
type DeltaLoggingStateDB ¶
type DeltaLoggingStateDB struct {
// contains filtered or unexported fields
}
DeltaLoggingStateDB logs operations in the delta debugger format before executing them.
func (*DeltaLoggingStateDB) AccessEvents ¶
func (s *DeltaLoggingStateDB) AccessEvents() *geth.AccessEvents
func (*DeltaLoggingStateDB) AddAddressToAccessList ¶
func (*DeltaLoggingStateDB) AddBalance ¶
func (*DeltaLoggingStateDB) AddPreimage ¶
func (*DeltaLoggingStateDB) AddSlotToAccessList ¶
func (*DeltaLoggingStateDB) AddressInAccessList ¶
func (*DeltaLoggingStateDB) BeginBlock ¶
func (s *DeltaLoggingStateDB) BeginBlock(blk uint64) error
func (*DeltaLoggingStateDB) BeginSyncPeriod ¶
func (s *DeltaLoggingStateDB) BeginSyncPeriod(number uint64)
func (*DeltaLoggingStateDB) BeginTransaction ¶
func (*DeltaLoggingStateDB) Close ¶
func (s *DeltaLoggingStateDB) Close() error
func (*DeltaLoggingStateDB) CreateAccount ¶
func (*DeltaLoggingStateDB) CreateContract ¶
func (*DeltaLoggingStateDB) EndBlock ¶
func (s *DeltaLoggingStateDB) EndBlock() error
func (*DeltaLoggingStateDB) EndSyncPeriod ¶
func (s *DeltaLoggingStateDB) EndSyncPeriod()
func (*DeltaLoggingStateDB) EndTransaction ¶
func (s *DeltaLoggingStateDB) EndTransaction() error
func (*DeltaLoggingStateDB) Error ¶
func (s *DeltaLoggingStateDB) Error() error
func (*DeltaLoggingStateDB) Finalise ¶
func (s *DeltaLoggingStateDB) Finalise(deleteEmptyObjects bool)
func (*DeltaLoggingStateDB) GetArchiveBlockHeight ¶
func (s *DeltaLoggingStateDB) GetArchiveBlockHeight() (uint64, bool, error)
func (*DeltaLoggingStateDB) GetArchiveState ¶
func (s *DeltaLoggingStateDB) GetArchiveState(block uint64) (state.NonCommittableStateDB, error)
func (*DeltaLoggingStateDB) GetBalance ¶
func (*DeltaLoggingStateDB) GetCodeHash ¶
func (*DeltaLoggingStateDB) GetCodeSize ¶
func (*DeltaLoggingStateDB) GetCommittedState ¶
func (*DeltaLoggingStateDB) GetMemoryUsage ¶
func (s *DeltaLoggingStateDB) GetMemoryUsage() *state.MemoryUsage
func (*DeltaLoggingStateDB) GetShadowDB ¶
func (s *DeltaLoggingStateDB) GetShadowDB() state.StateDB
func (*DeltaLoggingStateDB) GetStateAndCommittedState ¶
func (*DeltaLoggingStateDB) GetStorageRoot ¶
func (*DeltaLoggingStateDB) GetSubstatePostAlloc ¶
func (s *DeltaLoggingStateDB) GetSubstatePostAlloc() txcontext.WorldState
func (*DeltaLoggingStateDB) GetTransientState ¶
func (*DeltaLoggingStateDB) HasSelfDestructed ¶
func (*DeltaLoggingStateDB) IntermediateRoot ¶
func (s *DeltaLoggingStateDB) IntermediateRoot(deleteEmptyObjects bool) common.Hash
func (*DeltaLoggingStateDB) PointCache ¶
func (s *DeltaLoggingStateDB) PointCache() *utils.PointCache
func (*DeltaLoggingStateDB) PrepareSubstate ¶
func (s *DeltaLoggingStateDB) PrepareSubstate(substate txcontext.WorldState, block uint64)
func (*DeltaLoggingStateDB) RevertToSnapshot ¶
func (s *DeltaLoggingStateDB) RevertToSnapshot(id int)
func (*DeltaLoggingStateDB) SelfDestruct ¶
func (*DeltaLoggingStateDB) SelfDestruct6780 ¶
func (*DeltaLoggingStateDB) SetNonce ¶
func (s *DeltaLoggingStateDB) SetNonce(addr common.Address, nonce uint64, reason tracing.NonceChangeReason)
func (*DeltaLoggingStateDB) SetTransientState ¶
func (*DeltaLoggingStateDB) SetTxContext ¶
func (*DeltaLoggingStateDB) SlotInAccessList ¶
func (*DeltaLoggingStateDB) StartBulkLoad ¶
func (s *DeltaLoggingStateDB) StartBulkLoad(block uint64) (state.BulkLoad, error)
We intentionally do not wrap bulk-load operations because the delta replayer does not understand them. This keeps generated traces compatible with the delta debugger.
func (*DeltaLoggingStateDB) SubBalance ¶
type LoggingStateDb ¶
type LoggingStateDb struct {
// contains filtered or unexported fields
}
func (*LoggingStateDb) AccessEvents ¶
func (s *LoggingStateDb) AccessEvents() *geth.AccessEvents
func (*LoggingStateDb) AddAddressToAccessList ¶
func (*LoggingStateDb) AddBalance ¶
func (*LoggingStateDb) AddPreimage ¶
func (*LoggingStateDb) AddSlotToAccessList ¶
func (*LoggingStateDb) AddressInAccessList ¶
func (*LoggingStateDb) BeginBlock ¶
func (s *LoggingStateDb) BeginBlock(blk uint64) error
func (*LoggingStateDb) BeginSyncPeriod ¶
func (s *LoggingStateDb) BeginSyncPeriod(number uint64)
func (*LoggingStateDb) BeginTransaction ¶
func (*LoggingStateDb) Close ¶
func (s *LoggingStateDb) Close() error
func (*LoggingStateDb) CreateAccount ¶
func (*LoggingStateDb) CreateContract ¶
func (*LoggingStateDb) EndBlock ¶
func (s *LoggingStateDb) EndBlock() error
func (*LoggingStateDb) EndSyncPeriod ¶
func (s *LoggingStateDb) EndSyncPeriod()
func (*LoggingStateDb) EndTransaction ¶
func (s *LoggingStateDb) EndTransaction() error
func (*LoggingStateDb) Error ¶
func (s *LoggingStateDb) Error() error
func (*LoggingStateDb) Finalise ¶
func (s *LoggingStateDb) Finalise(deleteEmptyObjects bool)
func (*LoggingStateDb) GetArchiveBlockHeight ¶
func (s *LoggingStateDb) GetArchiveBlockHeight() (uint64, bool, error)
func (*LoggingStateDb) GetArchiveState ¶
func (s *LoggingStateDb) GetArchiveState(block uint64) (state.NonCommittableStateDB, error)
func (*LoggingStateDb) GetBalance ¶
func (*LoggingStateDb) GetCodeHash ¶
func (*LoggingStateDb) GetCodeSize ¶
func (*LoggingStateDb) GetCommittedState ¶
func (*LoggingStateDb) GetMemoryUsage ¶
func (s *LoggingStateDb) GetMemoryUsage() *state.MemoryUsage
func (*LoggingStateDb) GetShadowDB ¶
func (s *LoggingStateDb) GetShadowDB() state.StateDB
func (*LoggingStateDb) GetStateAndCommittedState ¶
func (*LoggingStateDb) GetStorageRoot ¶
func (*LoggingStateDb) GetSubstatePostAlloc ¶
func (s *LoggingStateDb) GetSubstatePostAlloc() txcontext.WorldState
func (*LoggingStateDb) GetTransientState ¶
func (*LoggingStateDb) HasSelfDestructed ¶
func (*LoggingStateDb) IntermediateRoot ¶
func (s *LoggingStateDb) IntermediateRoot(deleteEmptyObjects bool) common.Hash
func (*LoggingStateDb) PointCache ¶
func (s *LoggingStateDb) PointCache() *utils.PointCache
PointCache returns the point cache used in computations.
func (*LoggingStateDb) PrepareSubstate ¶
func (s *LoggingStateDb) PrepareSubstate(substate txcontext.WorldState, block uint64)
func (*LoggingStateDb) RevertToSnapshot ¶
func (s *LoggingStateDb) RevertToSnapshot(id int)
func (*LoggingStateDb) SelfDestruct ¶
func (*LoggingStateDb) SelfDestruct6780 ¶
func (*LoggingStateDb) SetNonce ¶
func (s *LoggingStateDb) SetNonce(addr common.Address, value uint64, reason tracing.NonceChangeReason)
func (*LoggingStateDb) SetTransientState ¶
func (*LoggingStateDb) SetTxContext ¶
func (*LoggingStateDb) SlotInAccessList ¶
func (*LoggingStateDb) StartBulkLoad ¶
func (s *LoggingStateDb) StartBulkLoad(block uint64) (state.BulkLoad, error)
func (*LoggingStateDb) SubBalance ¶
type ProfilerProxy ¶
type ProfilerProxy struct {
// contains filtered or unexported fields
}
ProfilerProxy data structure for capturing and recording invoked StateDB operations.
func NewProfilerProxy ¶
func NewProfilerProxy(db state.StateDB, anlt *analytics.IncrementalAnalytics, logLevel string) *ProfilerProxy
NewProfilerProxy creates a new StateDB profiler.
func (*ProfilerProxy) AccessEvents ¶
func (p *ProfilerProxy) AccessEvents() *geth.AccessEvents
func (*ProfilerProxy) AddAddressToAccessList ¶
func (p *ProfilerProxy) AddAddressToAccessList(addr common.Address)
AddAddressToAccessList adds an address to the access list.
func (*ProfilerProxy) AddBalance ¶
func (p *ProfilerProxy) AddBalance(addr common.Address, amount *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
AddBalance adds amount to a contract address.
func (*ProfilerProxy) AddLog ¶
func (p *ProfilerProxy) AddLog(log *types.Log)
AddLog adds a log entry.
func (*ProfilerProxy) AddPreimage ¶
func (p *ProfilerProxy) AddPreimage(addr common.Hash, image []byte)
AddPreimage adds a SHA3 preimage.
func (*ProfilerProxy) AddRefund ¶
func (p *ProfilerProxy) AddRefund(gas uint64)
AddRefund adds gas to the refund counter.
func (*ProfilerProxy) AddSlotToAccessList ¶
func (p *ProfilerProxy) AddSlotToAccessList(addr common.Address, slot common.Hash)
AddSlotToAccessList adds the given (address, slot)-tuple to the access list
func (*ProfilerProxy) AddressInAccessList ¶
func (p *ProfilerProxy) AddressInAccessList(addr common.Address) bool
AddressInAccessList checks whether an address is in the access list.
func (*ProfilerProxy) BeginBlock ¶
func (p *ProfilerProxy) BeginBlock(number uint64) error
func (*ProfilerProxy) BeginSyncPeriod ¶
func (p *ProfilerProxy) BeginSyncPeriod(number uint64)
func (*ProfilerProxy) BeginTransaction ¶
func (p *ProfilerProxy) BeginTransaction(number uint32) error
func (*ProfilerProxy) Close ¶
func (p *ProfilerProxy) Close() error
func (*ProfilerProxy) CreateAccount ¶
func (p *ProfilerProxy) CreateAccount(addr common.Address)
CreateAccount creates a new account.
func (*ProfilerProxy) CreateContract ¶
func (p *ProfilerProxy) CreateContract(addr common.Address)
func (*ProfilerProxy) Empty ¶
func (p *ProfilerProxy) Empty(addr common.Address) bool
Empty checks whether the contract is either non-existent or empty according to the EIP161 specification (balance = nonce = code = 0).
func (*ProfilerProxy) EndBlock ¶
func (p *ProfilerProxy) EndBlock() error
func (*ProfilerProxy) EndSyncPeriod ¶
func (p *ProfilerProxy) EndSyncPeriod()
func (*ProfilerProxy) EndTransaction ¶
func (p *ProfilerProxy) EndTransaction() error
func (*ProfilerProxy) Error ¶
func (p *ProfilerProxy) Error() error
func (*ProfilerProxy) Exist ¶
func (p *ProfilerProxy) Exist(addr common.Address) bool
Exist checks whether the contract exists in the StateDB. Notably this also returns true for suicided accounts.
func (*ProfilerProxy) Finalise ¶
func (p *ProfilerProxy) Finalise(deleteEmptyObjects bool)
Finalise the state in StateDB.
func (*ProfilerProxy) GetArchiveBlockHeight ¶
func (p *ProfilerProxy) GetArchiveBlockHeight() (uint64, bool, error)
func (*ProfilerProxy) GetArchiveState ¶
func (p *ProfilerProxy) GetArchiveState(block uint64) (state.NonCommittableStateDB, error)
func (*ProfilerProxy) GetBalance ¶
func (p *ProfilerProxy) GetBalance(addr common.Address) *uint256.Int
GetBalance retrieves the amount of a contract address.
func (*ProfilerProxy) GetCode ¶
func (p *ProfilerProxy) GetCode(addr common.Address) []byte
GetCode returns the EVM bytecode of a contract.
func (*ProfilerProxy) GetCodeHash ¶
func (p *ProfilerProxy) GetCodeHash(addr common.Address) common.Hash
GetCodeHash returns the hash of the EVM bytecode.
func (*ProfilerProxy) GetCodeSize ¶
func (p *ProfilerProxy) GetCodeSize(addr common.Address) int
GetCodeSize returns the EVM bytecode's size.
func (*ProfilerProxy) GetCommittedState ¶
GetCommittedState retrieves a value that is already committed.
func (*ProfilerProxy) GetLogs ¶
func (p *ProfilerProxy) GetLogs(hash common.Hash, block uint64, blockHash common.Hash, blkTimestamp uint64) []*types.Log
GetLogs retrieves log entries.
func (*ProfilerProxy) GetMemoryUsage ¶
func (p *ProfilerProxy) GetMemoryUsage() *state.MemoryUsage
func (*ProfilerProxy) GetNonce ¶
func (p *ProfilerProxy) GetNonce(addr common.Address) uint64
GetNonce retrieves the nonce of a contract address.
func (*ProfilerProxy) GetRefund ¶
func (p *ProfilerProxy) GetRefund() uint64
GetRefund returns the current value of the refund counter.
func (*ProfilerProxy) GetShadowDB ¶
func (p *ProfilerProxy) GetShadowDB() state.StateDB
func (*ProfilerProxy) GetStateAndCommittedState ¶
func (*ProfilerProxy) GetStorageRoot ¶
func (p *ProfilerProxy) GetStorageRoot(addr common.Address) common.Hash
func (*ProfilerProxy) GetSubstatePostAlloc ¶
func (p *ProfilerProxy) GetSubstatePostAlloc() txcontext.WorldState
GetSubstatePostAlloc gets substate post allocation.
func (*ProfilerProxy) GetTransientState ¶
func (*ProfilerProxy) HasSelfDestructed ¶
func (p *ProfilerProxy) HasSelfDestructed(addr common.Address) bool
HasSelfDestructed checks whether a contract has been suicided.
func (*ProfilerProxy) IntermediateRoot ¶
func (p *ProfilerProxy) IntermediateRoot(deleteEmptyObjects bool) common.Hash
IntermediateRoot computes the current hash of the StateDB. It is called in between transactions to get the root hash that goes into transaction receipts.
func (*ProfilerProxy) PointCache ¶
func (p *ProfilerProxy) PointCache() *utils.PointCache
PointCache returns the point cache used in computations.
func (*ProfilerProxy) Prepare ¶
func (p *ProfilerProxy) Prepare(rules params.Rules, sender, coinbase common.Address, dest *common.Address, precompiles []common.Address, txAccesses types.AccessList)
Prepare handles the preparatory steps for executing a state transition with regards to both EIP-2929 and EIP-2930:
- Add sender to access list (2929) - Add destination to access list (2929) - Add precompiles to access list (2929) - Add the contents of the optional tx access list (2930)
This method should only be called if Berlin/2929+2930 is applicable at the current number.
func (*ProfilerProxy) PrepareSubstate ¶
func (p *ProfilerProxy) PrepareSubstate(substate txcontext.WorldState, block uint64)
func (*ProfilerProxy) RevertToSnapshot ¶
func (p *ProfilerProxy) RevertToSnapshot(snapshot int)
RevertToSnapshot reverts all state changes from a given revision.
func (*ProfilerProxy) SelfDestruct ¶
func (p *ProfilerProxy) SelfDestruct(addr common.Address) uint256.Int
SelfDestruct marks the given account as self destructed. This clears the account balance. The account is still available until the state is committed; return a non-nil account after SelfDestruct.
func (*ProfilerProxy) SelfDestruct6780 ¶
func (*ProfilerProxy) SetCode ¶
func (p *ProfilerProxy) SetCode(addr common.Address, code []byte, reason tracing.CodeChangeReason) []byte
SetCode sets the EVM bytecode of a contract.
func (*ProfilerProxy) SetNonce ¶
func (p *ProfilerProxy) SetNonce(addr common.Address, nonce uint64, reason tracing.NonceChangeReason)
SetNonce sets the nonce of a contract address.
func (*ProfilerProxy) SetState ¶
func (p *ProfilerProxy) SetState(addr common.Address, key common.Hash, value common.Hash) common.Hash
SetState sets a value in the StateDB.
func (*ProfilerProxy) SetTransientState ¶
func (*ProfilerProxy) SetTxContext ¶
func (p *ProfilerProxy) SetTxContext(thash common.Hash, ti int)
Prepare sets the current transaction hash and index.
func (*ProfilerProxy) SlotInAccessList ¶
SlotInAccessList checks whether the (address, slot)-tuple is in the access list.
func (*ProfilerProxy) Snapshot ¶
func (p *ProfilerProxy) Snapshot() int
Snapshot returns an identifier for the current revision of the state.
func (*ProfilerProxy) StartBulkLoad ¶
func (p *ProfilerProxy) StartBulkLoad(block uint64) (state.BulkLoad, error)
func (*ProfilerProxy) SubBalance ¶
func (p *ProfilerProxy) SubBalance(addr common.Address, amount *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
SubBalance subtracts amount from a contract address.
func (*ProfilerProxy) SubRefund ¶
func (p *ProfilerProxy) SubRefund(gas uint64)
SubRefund subtracts gas to the refund counter.
func (*ProfilerProxy) Witness ¶
func (p *ProfilerProxy) Witness() *stateless.Witness
Witness retrieves the current state witness.