Versions in this module Expand all Collapse all v1 v1.7.17 Aug 31, 2022 Changes in this version + var ErrDelegatorSubset = errors.New("delegator's time range must be a subset of the validator's time range") + var ErrMissingParentState = errors.New("missing parent state") + var PendingToCurrentPriorities = []Priority + type BlockState interface + AddStatelessBlock func(block blocks.Block, status choices.Status) + GetStatelessBlock func(blockID ids.ID) (blocks.Block, choices.Status, error) + type Chain interface + AddChain func(createChainTx *txs.Tx) + AddRewardUTXO func(txID ids.ID, utxo *avax.UTXO) + AddSubnet func(createSubnetTx *txs.Tx) + AddTx func(tx *txs.Tx, status status.Status) + GetChains func(subnetID ids.ID) ([]*txs.Tx, error) + GetCurrentSupply func() uint64 + GetRewardUTXOs func(txID ids.ID) ([]*avax.UTXO, error) + GetSubnets func() ([]*txs.Tx, error) + GetTimestamp func() time.Time + GetTx func(txID ids.ID) (*txs.Tx, status.Status, error) + SetCurrentSupply func(cs uint64) + SetTimestamp func(tm time.Time) + type CurrentStakers interface + DeleteCurrentDelegator func(staker *Staker) + DeleteCurrentValidator func(staker *Staker) + GetCurrentDelegatorIterator func(subnetID ids.ID, nodeID ids.NodeID) (StakerIterator, error) + GetCurrentStakerIterator func() (StakerIterator, error) + GetCurrentValidator func(subnetID ids.ID, nodeID ids.NodeID) (*Staker, error) + PutCurrentDelegator func(staker *Staker) + PutCurrentValidator func(staker *Staker) + type Diff interface + Apply func(State) + func NewDiff(parentID ids.ID, stateVersions Versions) (Diff, error) + type LastAccepteder interface + GetLastAccepted func() ids.ID + SetLastAccepted func(blkID ids.ID) + type MockBlockState struct + func NewMockBlockState(ctrl *gomock.Controller) *MockBlockState + func (m *MockBlockState) AddStatelessBlock(block blocks.Block, status choices.Status) + func (m *MockBlockState) EXPECT() *MockBlockStateMockRecorder + func (m *MockBlockState) GetStatelessBlock(blockID ids.ID) (blocks.Block, choices.Status, error) + type MockBlockStateMockRecorder struct + func (mr *MockBlockStateMockRecorder) AddStatelessBlock(block, status interface{}) *gomock.Call + func (mr *MockBlockStateMockRecorder) GetStatelessBlock(blockID interface{}) *gomock.Call + type MockChain struct + func NewMockChain(ctrl *gomock.Controller) *MockChain + func (m *MockChain) AddChain(createChainTx *txs.Tx) + func (m *MockChain) AddRewardUTXO(txID ids.ID, utxo *avax.UTXO) + func (m *MockChain) AddSubnet(createSubnetTx *txs.Tx) + func (m *MockChain) AddTx(tx *txs.Tx, status status.Status) + func (m *MockChain) AddUTXO(utxo *avax.UTXO) + func (m *MockChain) DeleteCurrentDelegator(staker *Staker) + func (m *MockChain) DeleteCurrentValidator(staker *Staker) + func (m *MockChain) DeletePendingDelegator(staker *Staker) + func (m *MockChain) DeletePendingValidator(staker *Staker) + func (m *MockChain) DeleteUTXO(utxoID ids.ID) + func (m *MockChain) EXPECT() *MockChainMockRecorder + func (m *MockChain) GetChains(subnetID ids.ID) ([]*txs.Tx, error) + func (m *MockChain) GetCurrentDelegatorIterator(subnetID ids.ID, nodeID ids.NodeID) (StakerIterator, error) + func (m *MockChain) GetCurrentStakerIterator() (StakerIterator, error) + func (m *MockChain) GetCurrentSupply() uint64 + func (m *MockChain) GetCurrentValidator(subnetID ids.ID, nodeID ids.NodeID) (*Staker, error) + func (m *MockChain) GetPendingDelegatorIterator(subnetID ids.ID, nodeID ids.NodeID) (StakerIterator, error) + func (m *MockChain) GetPendingStakerIterator() (StakerIterator, error) + func (m *MockChain) GetPendingValidator(subnetID ids.ID, nodeID ids.NodeID) (*Staker, error) + func (m *MockChain) GetRewardUTXOs(txID ids.ID) ([]*avax.UTXO, error) + func (m *MockChain) GetSubnets() ([]*txs.Tx, error) + func (m *MockChain) GetTimestamp() time.Time + func (m *MockChain) GetTx(txID ids.ID) (*txs.Tx, status.Status, error) + func (m *MockChain) GetUTXO(utxoID ids.ID) (*avax.UTXO, error) + func (m *MockChain) PutCurrentDelegator(staker *Staker) + func (m *MockChain) PutCurrentValidator(staker *Staker) + func (m *MockChain) PutPendingDelegator(staker *Staker) + func (m *MockChain) PutPendingValidator(staker *Staker) + func (m *MockChain) SetCurrentSupply(cs uint64) + func (m *MockChain) SetTimestamp(tm time.Time) + type MockChainMockRecorder struct + func (mr *MockChainMockRecorder) AddChain(createChainTx interface{}) *gomock.Call + func (mr *MockChainMockRecorder) AddRewardUTXO(txID, utxo interface{}) *gomock.Call + func (mr *MockChainMockRecorder) AddSubnet(createSubnetTx interface{}) *gomock.Call + func (mr *MockChainMockRecorder) AddTx(tx, status interface{}) *gomock.Call + func (mr *MockChainMockRecorder) AddUTXO(utxo interface{}) *gomock.Call + func (mr *MockChainMockRecorder) DeleteCurrentDelegator(staker interface{}) *gomock.Call + func (mr *MockChainMockRecorder) DeleteCurrentValidator(staker interface{}) *gomock.Call + func (mr *MockChainMockRecorder) DeletePendingDelegator(staker interface{}) *gomock.Call + func (mr *MockChainMockRecorder) DeletePendingValidator(staker interface{}) *gomock.Call + func (mr *MockChainMockRecorder) DeleteUTXO(utxoID interface{}) *gomock.Call + func (mr *MockChainMockRecorder) GetChains(subnetID interface{}) *gomock.Call + func (mr *MockChainMockRecorder) GetCurrentDelegatorIterator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockChainMockRecorder) GetCurrentStakerIterator() *gomock.Call + func (mr *MockChainMockRecorder) GetCurrentSupply() *gomock.Call + func (mr *MockChainMockRecorder) GetCurrentValidator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockChainMockRecorder) GetPendingDelegatorIterator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockChainMockRecorder) GetPendingStakerIterator() *gomock.Call + func (mr *MockChainMockRecorder) GetPendingValidator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockChainMockRecorder) GetRewardUTXOs(txID interface{}) *gomock.Call + func (mr *MockChainMockRecorder) GetSubnets() *gomock.Call + func (mr *MockChainMockRecorder) GetTimestamp() *gomock.Call + func (mr *MockChainMockRecorder) GetTx(txID interface{}) *gomock.Call + func (mr *MockChainMockRecorder) GetUTXO(utxoID interface{}) *gomock.Call + func (mr *MockChainMockRecorder) PutCurrentDelegator(staker interface{}) *gomock.Call + func (mr *MockChainMockRecorder) PutCurrentValidator(staker interface{}) *gomock.Call + func (mr *MockChainMockRecorder) PutPendingDelegator(staker interface{}) *gomock.Call + func (mr *MockChainMockRecorder) PutPendingValidator(staker interface{}) *gomock.Call + func (mr *MockChainMockRecorder) SetCurrentSupply(cs interface{}) *gomock.Call + func (mr *MockChainMockRecorder) SetTimestamp(tm interface{}) *gomock.Call + type MockDiff struct + func NewMockDiff(ctrl *gomock.Controller) *MockDiff + func (m *MockDiff) AddChain(createChainTx *txs.Tx) + func (m *MockDiff) AddRewardUTXO(txID ids.ID, utxo *avax.UTXO) + func (m *MockDiff) AddSubnet(createSubnetTx *txs.Tx) + func (m *MockDiff) AddTx(tx *txs.Tx, status status.Status) + func (m *MockDiff) AddUTXO(utxo *avax.UTXO) + func (m *MockDiff) Apply(arg0 State) + func (m *MockDiff) DeleteCurrentDelegator(staker *Staker) + func (m *MockDiff) DeleteCurrentValidator(staker *Staker) + func (m *MockDiff) DeletePendingDelegator(staker *Staker) + func (m *MockDiff) DeletePendingValidator(staker *Staker) + func (m *MockDiff) DeleteUTXO(utxoID ids.ID) + func (m *MockDiff) EXPECT() *MockDiffMockRecorder + func (m *MockDiff) GetChains(subnetID ids.ID) ([]*txs.Tx, error) + func (m *MockDiff) GetCurrentDelegatorIterator(subnetID ids.ID, nodeID ids.NodeID) (StakerIterator, error) + func (m *MockDiff) GetCurrentStakerIterator() (StakerIterator, error) + func (m *MockDiff) GetCurrentSupply() uint64 + func (m *MockDiff) GetCurrentValidator(subnetID ids.ID, nodeID ids.NodeID) (*Staker, error) + func (m *MockDiff) GetPendingDelegatorIterator(subnetID ids.ID, nodeID ids.NodeID) (StakerIterator, error) + func (m *MockDiff) GetPendingStakerIterator() (StakerIterator, error) + func (m *MockDiff) GetPendingValidator(subnetID ids.ID, nodeID ids.NodeID) (*Staker, error) + func (m *MockDiff) GetRewardUTXOs(txID ids.ID) ([]*avax.UTXO, error) + func (m *MockDiff) GetSubnets() ([]*txs.Tx, error) + func (m *MockDiff) GetTimestamp() time.Time + func (m *MockDiff) GetTx(txID ids.ID) (*txs.Tx, status.Status, error) + func (m *MockDiff) GetUTXO(utxoID ids.ID) (*avax.UTXO, error) + func (m *MockDiff) PutCurrentDelegator(staker *Staker) + func (m *MockDiff) PutCurrentValidator(staker *Staker) + func (m *MockDiff) PutPendingDelegator(staker *Staker) + func (m *MockDiff) PutPendingValidator(staker *Staker) + func (m *MockDiff) SetCurrentSupply(cs uint64) + func (m *MockDiff) SetTimestamp(tm time.Time) + type MockDiffMockRecorder struct + func (mr *MockDiffMockRecorder) AddChain(createChainTx interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) AddRewardUTXO(txID, utxo interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) AddSubnet(createSubnetTx interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) AddTx(tx, status interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) AddUTXO(utxo interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) Apply(arg0 interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) DeleteCurrentDelegator(staker interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) DeleteCurrentValidator(staker interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) DeletePendingDelegator(staker interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) DeletePendingValidator(staker interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) DeleteUTXO(utxoID interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) GetChains(subnetID interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) GetCurrentDelegatorIterator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) GetCurrentStakerIterator() *gomock.Call + func (mr *MockDiffMockRecorder) GetCurrentSupply() *gomock.Call + func (mr *MockDiffMockRecorder) GetCurrentValidator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) GetPendingDelegatorIterator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) GetPendingStakerIterator() *gomock.Call + func (mr *MockDiffMockRecorder) GetPendingValidator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) GetRewardUTXOs(txID interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) GetSubnets() *gomock.Call + func (mr *MockDiffMockRecorder) GetTimestamp() *gomock.Call + func (mr *MockDiffMockRecorder) GetTx(txID interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) GetUTXO(utxoID interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) PutCurrentDelegator(staker interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) PutCurrentValidator(staker interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) PutPendingDelegator(staker interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) PutPendingValidator(staker interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) SetCurrentSupply(cs interface{}) *gomock.Call + func (mr *MockDiffMockRecorder) SetTimestamp(tm interface{}) *gomock.Call + type MockLastAccepteder struct + func NewMockLastAccepteder(ctrl *gomock.Controller) *MockLastAccepteder + func (m *MockLastAccepteder) EXPECT() *MockLastAcceptederMockRecorder + func (m *MockLastAccepteder) GetLastAccepted() ids.ID + func (m *MockLastAccepteder) SetLastAccepted(blkID ids.ID) + type MockLastAcceptederMockRecorder struct + func (mr *MockLastAcceptederMockRecorder) GetLastAccepted() *gomock.Call + func (mr *MockLastAcceptederMockRecorder) SetLastAccepted(blkID interface{}) *gomock.Call + type MockStakerIterator struct + func NewMockStakerIterator(ctrl *gomock.Controller) *MockStakerIterator + func (m *MockStakerIterator) EXPECT() *MockStakerIteratorMockRecorder + func (m *MockStakerIterator) Next() bool + func (m *MockStakerIterator) Release() + func (m *MockStakerIterator) Value() *Staker + type MockStakerIteratorMockRecorder struct + func (mr *MockStakerIteratorMockRecorder) Next() *gomock.Call + func (mr *MockStakerIteratorMockRecorder) Release() *gomock.Call + func (mr *MockStakerIteratorMockRecorder) Value() *gomock.Call + type MockState struct + func NewMockState(ctrl *gomock.Controller) *MockState + func (m *MockState) Abort() + func (m *MockState) AddChain(createChainTx *txs.Tx) + func (m *MockState) AddRewardUTXO(txID ids.ID, utxo *avax.UTXO) + func (m *MockState) AddStatelessBlock(block blocks.Block, status choices.Status) + func (m *MockState) AddSubnet(createSubnetTx *txs.Tx) + func (m *MockState) AddTx(tx *txs.Tx, status status.Status) + func (m *MockState) AddUTXO(utxo *avax.UTXO) + func (m *MockState) Close() error + func (m *MockState) Commit() error + func (m *MockState) CommitBatch() (database.Batch, error) + func (m *MockState) DeleteCurrentDelegator(staker *Staker) + func (m *MockState) DeleteCurrentValidator(staker *Staker) + func (m *MockState) DeletePendingDelegator(staker *Staker) + func (m *MockState) DeletePendingValidator(staker *Staker) + func (m *MockState) DeleteUTXO(utxoID ids.ID) + func (m *MockState) EXPECT() *MockStateMockRecorder + func (m *MockState) GetChains(subnetID ids.ID) ([]*txs.Tx, error) + func (m *MockState) GetCurrentDelegatorIterator(subnetID ids.ID, nodeID ids.NodeID) (StakerIterator, error) + func (m *MockState) GetCurrentStakerIterator() (StakerIterator, error) + func (m *MockState) GetCurrentSupply() uint64 + func (m *MockState) GetCurrentValidator(subnetID ids.ID, nodeID ids.NodeID) (*Staker, error) + func (m *MockState) GetLastAccepted() ids.ID + func (m *MockState) GetPendingDelegatorIterator(subnetID ids.ID, nodeID ids.NodeID) (StakerIterator, error) + func (m *MockState) GetPendingStakerIterator() (StakerIterator, error) + func (m *MockState) GetPendingValidator(subnetID ids.ID, nodeID ids.NodeID) (*Staker, error) + func (m *MockState) GetRewardUTXOs(txID ids.ID) ([]*avax.UTXO, error) + func (m *MockState) GetStartTime(nodeID ids.NodeID) (time.Time, error) + func (m *MockState) GetStatelessBlock(blockID ids.ID) (blocks.Block, choices.Status, error) + func (m *MockState) GetSubnets() ([]*txs.Tx, error) + func (m *MockState) GetTimestamp() time.Time + func (m *MockState) GetTx(txID ids.ID) (*txs.Tx, status.Status, error) + func (m *MockState) GetUTXO(utxoID ids.ID) (*avax.UTXO, error) + func (m *MockState) GetUptime(nodeID ids.NodeID) (time.Duration, time.Time, error) + func (m *MockState) GetValidatorWeightDiffs(height uint64, subnetID ids.ID) (map[ids.NodeID]*ValidatorWeightDiff, error) + func (m *MockState) PutCurrentDelegator(staker *Staker) + func (m *MockState) PutCurrentValidator(staker *Staker) + func (m *MockState) PutPendingDelegator(staker *Staker) + func (m *MockState) PutPendingValidator(staker *Staker) + func (m *MockState) SetCurrentSupply(cs uint64) + func (m *MockState) SetHeight(height uint64) + func (m *MockState) SetLastAccepted(blkID ids.ID) + func (m *MockState) SetTimestamp(tm time.Time) + func (m *MockState) SetUptime(nodeID ids.NodeID, upDuration time.Duration, lastUpdated time.Time) error + func (m *MockState) UTXOIDs(addr []byte, previous ids.ID, limit int) ([]ids.ID, error) + func (m *MockState) ValidatorSet(subnetID ids.ID) (validators.Set, error) + type MockStateMockRecorder struct + func (mr *MockStateMockRecorder) Abort() *gomock.Call + func (mr *MockStateMockRecorder) AddChain(createChainTx interface{}) *gomock.Call + func (mr *MockStateMockRecorder) AddRewardUTXO(txID, utxo interface{}) *gomock.Call + func (mr *MockStateMockRecorder) AddStatelessBlock(block, status interface{}) *gomock.Call + func (mr *MockStateMockRecorder) AddSubnet(createSubnetTx interface{}) *gomock.Call + func (mr *MockStateMockRecorder) AddTx(tx, status interface{}) *gomock.Call + func (mr *MockStateMockRecorder) AddUTXO(utxo interface{}) *gomock.Call + func (mr *MockStateMockRecorder) Close() *gomock.Call + func (mr *MockStateMockRecorder) Commit() *gomock.Call + func (mr *MockStateMockRecorder) CommitBatch() *gomock.Call + func (mr *MockStateMockRecorder) DeleteCurrentDelegator(staker interface{}) *gomock.Call + func (mr *MockStateMockRecorder) DeleteCurrentValidator(staker interface{}) *gomock.Call + func (mr *MockStateMockRecorder) DeletePendingDelegator(staker interface{}) *gomock.Call + func (mr *MockStateMockRecorder) DeletePendingValidator(staker interface{}) *gomock.Call + func (mr *MockStateMockRecorder) DeleteUTXO(utxoID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetChains(subnetID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetCurrentDelegatorIterator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetCurrentStakerIterator() *gomock.Call + func (mr *MockStateMockRecorder) GetCurrentSupply() *gomock.Call + func (mr *MockStateMockRecorder) GetCurrentValidator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetLastAccepted() *gomock.Call + func (mr *MockStateMockRecorder) GetPendingDelegatorIterator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetPendingStakerIterator() *gomock.Call + func (mr *MockStateMockRecorder) GetPendingValidator(subnetID, nodeID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetRewardUTXOs(txID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetStartTime(nodeID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetStatelessBlock(blockID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetSubnets() *gomock.Call + func (mr *MockStateMockRecorder) GetTimestamp() *gomock.Call + func (mr *MockStateMockRecorder) GetTx(txID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetUTXO(utxoID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetUptime(nodeID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) GetValidatorWeightDiffs(height, subnetID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) PutCurrentDelegator(staker interface{}) *gomock.Call + func (mr *MockStateMockRecorder) PutCurrentValidator(staker interface{}) *gomock.Call + func (mr *MockStateMockRecorder) PutPendingDelegator(staker interface{}) *gomock.Call + func (mr *MockStateMockRecorder) PutPendingValidator(staker interface{}) *gomock.Call + func (mr *MockStateMockRecorder) SetCurrentSupply(cs interface{}) *gomock.Call + func (mr *MockStateMockRecorder) SetHeight(height interface{}) *gomock.Call + func (mr *MockStateMockRecorder) SetLastAccepted(blkID interface{}) *gomock.Call + func (mr *MockStateMockRecorder) SetTimestamp(tm interface{}) *gomock.Call + func (mr *MockStateMockRecorder) SetUptime(nodeID, upDuration, lastUpdated interface{}) *gomock.Call + func (mr *MockStateMockRecorder) UTXOIDs(addr, previous, limit interface{}) *gomock.Call + func (mr *MockStateMockRecorder) ValidatorSet(subnetID interface{}) *gomock.Call + type MockVersions struct + func NewMockVersions(ctrl *gomock.Controller) *MockVersions + func (m *MockVersions) EXPECT() *MockVersionsMockRecorder + func (m *MockVersions) GetState(arg0 ids.ID) (Chain, bool) + type MockVersionsMockRecorder struct + func (mr *MockVersionsMockRecorder) GetState(arg0 interface{}) *gomock.Call + type PendingStakers interface + DeletePendingDelegator func(staker *Staker) + DeletePendingValidator func(staker *Staker) + GetPendingDelegatorIterator func(subnetID ids.ID, nodeID ids.NodeID) (StakerIterator, error) + GetPendingStakerIterator func() (StakerIterator, error) + GetPendingValidator func(subnetID ids.ID, nodeID ids.NodeID) (*Staker, error) + PutPendingDelegator func(staker *Staker) + PutPendingValidator func(staker *Staker) + type Priority byte + const PrimaryNetworkDelegatorCurrentPriority + const PrimaryNetworkDelegatorPendingPriority + const PrimaryNetworkValidatorCurrentPriority + const PrimaryNetworkValidatorPendingPriority + const SubnetDelegatorCurrentPriority + const SubnetDelegatorPendingPriority + const SubnetValidatorCurrentPriority + const SubnetValidatorPendingPriority + type Staker struct + EndTime time.Time + NextTime time.Time + NodeID ids.NodeID + PotentialReward uint64 + Priority Priority + StartTime time.Time + SubnetID ids.ID + TxID ids.ID + Weight uint64 + func NewPrimaryNetworkStaker(txID ids.ID, vdr *validator.Validator) *Staker + func NewSubnetStaker(txID ids.ID, vdr *validator.SubnetValidator) *Staker + func (s *Staker) Less(thanIntf btree.Item) bool + type StakerDiffIterator interface + Next func() bool + Release func() + Value func() (*Staker, bool) + func NewStakerDiffIterator(currentIterator, pendingIterator StakerIterator) StakerDiffIterator + type StakerIterator interface + Next func() bool + Release func() + Value func() *Staker + var EmptyIterator StakerIterator = emptyIterator{} + func NewMaskedIterator(parentIterator StakerIterator, maskedStakers map[ids.ID]*Staker) StakerIterator + func NewMergedIterator(stakers ...StakerIterator) StakerIterator + func NewTreeIterator(tree *btree.BTree) StakerIterator + type Stakers interface + type State interface + Abort func() + Close func() error + Commit func() error + CommitBatch func() (database.Batch, error) + GetValidatorWeightDiffs func(height uint64, subnetID ids.ID) (map[ids.NodeID]*ValidatorWeightDiff, error) + SetHeight func(height uint64) + ValidatorSet func(subnetID ids.ID) (validators.Set, error) + func New(db database.Database, genesisBytes []byte, metricsReg prometheus.Registerer, ...) (State, error) + type UTXOAdder interface + AddUTXO func(utxo *avax.UTXO) + type UTXODeleter interface + DeleteUTXO func(utxoID ids.ID) + type UTXOGetter interface + GetUTXO func(utxoID ids.ID) (*avax.UTXO, error) + type ValidatorWeightDiff struct + Amount uint64 + Decrease bool + func (v *ValidatorWeightDiff) Add(negative bool, amount uint64) error + type Versions interface + GetState func(blkID ids.ID) (Chain, bool)