Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransitionState ¶
type TransitionState struct {
CurrentAccountAddress *common.Address // addresss of the last translated account
CurrentSlotHash common.Hash // hash of the last translated storage slot
CurrentPreimageOffset int64 // next byte to read from the preimage file
Started, Ended bool
// Mark whether the storage for an account has been processed. This is useful if the
// maximum number of leaves of the conversion is reached before the whole storage is
// processed.
StorageProcessed bool
BaseRoot common.Hash // hash of the last read-only MPT base tree
}
TransitionState is a structure that holds the progress markers of the translation process.
func LoadTransitionState ¶
func LoadTransitionState(db ethdb.KeyValueReader, root common.Hash, isVerkle bool) *TransitionState
LoadTransitionState retrieves the Verkle transition state associated with the given state root hash from the database.
func (*TransitionState) Copy ¶
func (ts *TransitionState) Copy() *TransitionState
Copy returns a deep copy of the TransitionState object.
func (*TransitionState) InTransition ¶
func (ts *TransitionState) InTransition() bool
InTransition returns true if the translation process is in progress.
func (*TransitionState) Transitioned ¶
func (ts *TransitionState) Transitioned() bool
Transitioned returns true if the translation process has been completed.
Click to show internal directories.
Click to hide internal directories.