overlay

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: GPL-3.0 Imports: 6 Imported by: 1

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.

Jump to

Keyboard shortcuts

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