 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var (
	ErrMissingParentState = errors.New("missing parent state")
)
    Functions ¶
This section is empty.
Types ¶
type ReadOnlyChain ¶
type State ¶
type State interface {
	Chain
	avax.UTXOReader
	IsInitialized() (bool, error)
	SetInitialized() error
	// InitializeChainState is called after the VM has been linearized. Calling
	// [GetLastAccepted] or [GetTimestamp] before calling this function will
	// return uninitialized data.
	//
	// Invariant: After the chain is linearized, this function is expected to be
	// called during startup.
	InitializeChainState(stopVertexID ids.ID, genesisTimestamp time.Time) error
	// Discard uncommitted changes to the database.
	Abort()
	// Commit changes to the base database.
	Commit() error
	// Returns a batch of unwritten changes that, when written, will commit all
	// pending changes to the base database.
	CommitBatch() (database.Batch, error)
	// Checksum returns the current state checksum.
	Checksum() ids.ID
	Close() error
}
    State persistently maintains a set of UTXOs, transaction, statuses, and singletons.
 Click to show internal directories. 
   Click to hide internal directories.