Versions in this module Expand all Collapse all v1 v1.9.8 Jun 28, 2023 Changes in this version + var ErrMissingParentState = errors.New("missing parent state") + type Chain interface + AddBlock func(block blocks.Block) + AddTx func(tx *txs.Tx) + AddUTXO func(utxo *avax.UTXO) + DeleteUTXO func(utxoID ids.ID) + GetBlock func(blkID ids.ID) (blocks.Block, error) + GetBlockID func(height uint64) (ids.ID, error) + GetLastAccepted func() ids.ID + GetTimestamp func() time.Time + GetTx func(txID ids.ID) (*txs.Tx, error) + GetUTXO func(utxoID ids.ID) (*avax.UTXO, error) + SetLastAccepted func(blkID ids.ID) + SetTimestamp func(t time.Time) + type Diff interface + Apply func(Chain) + func NewDiff(parentID ids.ID, stateVersions Versions) (Diff, error) + type State interface + Abort func() + AddStatus func(id ids.ID, status choices.Status) + Close func() error + Commit func() error + CommitBatch func() (database.Batch, error) + GetStatus func(id ids.ID) (choices.Status, error) + InitializeChainState func(stopVertexID ids.ID, genesisTimestamp time.Time) error + IsInitialized func() (bool, error) + SetInitialized func() error + func New(db *versiondb.Database, parser blocks.Parser, metrics prometheus.Registerer) (State, error) + type Versions interface + GetState func(blkID ids.ID) (Chain, bool) v1.9.8-rc.9 Jun 28, 2023