Versions in this module Expand all Collapse all v1 v1.14.2 Aug 2, 2025 Changes in this version + type Manager struct + func NewManager(ctrl *gomock.Controller) *Manager + func (m *Manager) Add(subnetID ids.ID, arg1 validators.Set) error + func (m *Manager) Contains(subnetID ids.ID) bool + func (m *Manager) Count() int + func (m *Manager) EXPECT() *ManagerMockRecorder + func (m *Manager) Get(subnetID ids.ID) (validators.Set, bool) + func (m *Manager) GetByWeight(subnetID ids.ID, minWeight uint64) (validators.Set, bool) + func (m *Manager) GetValidator(subnetID ids.ID, nodeID ids.NodeID) (*validators.Validator, error) + func (m *Manager) GetWeight(subnetID ids.ID, nodeID ids.NodeID) uint64 + func (m *Manager) RecalculateStakes(subnetID ids.ID) error + func (m *Manager) Remove(subnetID ids.ID) error + func (m *Manager) String() string + func (m *Manager) TotalWeight(subnetID ids.ID) (uint64, error) + type ManagerMockRecorder struct + func (mr *ManagerMockRecorder) Add(subnetID, arg1 any) *gomock.Call + func (mr *ManagerMockRecorder) Contains(subnetID any) *gomock.Call + func (mr *ManagerMockRecorder) Count() *gomock.Call + func (mr *ManagerMockRecorder) Get(subnetID any) *gomock.Call + func (mr *ManagerMockRecorder) GetByWeight(subnetID, minWeight any) *gomock.Call + func (mr *ManagerMockRecorder) GetValidator(subnetID, nodeID any) *gomock.Call + func (mr *ManagerMockRecorder) GetWeight(subnetID, nodeID any) *gomock.Call + func (mr *ManagerMockRecorder) RecalculateStakes(subnetID any) *gomock.Call + func (mr *ManagerMockRecorder) Remove(subnetID any) *gomock.Call + func (mr *ManagerMockRecorder) String() *gomock.Call + func (mr *ManagerMockRecorder) TotalWeight(subnetID any) *gomock.Call + type MockConnector struct + func NewMockConnector(ctrl *gomock.Controller) *MockConnector + func (m *MockConnector) Connected(ctx context.Context, nodeID ids.NodeID, nodeVersion *version.Application) error + func (m *MockConnector) Disconnected(ctx context.Context, nodeID ids.NodeID) error + func (m *MockConnector) EXPECT() *MockConnectorMockRecorder + type MockConnectorMockRecorder struct + func (mr *MockConnectorMockRecorder) Connected(ctx, nodeID, nodeVersion any) *gomock.Call + func (mr *MockConnectorMockRecorder) Disconnected(ctx, nodeID any) *gomock.Call + type MockManager struct + func NewMockManager(ctrl *gomock.Controller) *MockManager + func (m *MockManager) Add(subnetID ids.ID, arg1 validators.Set) error + func (m *MockManager) AddStaker(subnetID ids.ID, nodeID ids.NodeID, pk *bls.PublicKey, txID ids.ID, ...) error + func (m *MockManager) AddWeight(subnetID ids.ID, nodeID ids.NodeID, weight uint64) error + func (m *MockManager) Contains(subnetID ids.ID) bool + func (m *MockManager) Count() int + func (m *MockManager) EXPECT() *MockManagerMockRecorder + func (m *MockManager) Get(subnetID ids.ID) (validators.Set, bool) + func (m *MockManager) GetByWeight(subnetID ids.ID, minWeight uint64) (validators.Set, bool) + func (m *MockManager) GetMap(subnetID ids.ID) map[ids.NodeID]*validators.Validator + func (m *MockManager) GetValidator(subnetID ids.ID, nodeID ids.NodeID) (*validators.Validator, error) + func (m *MockManager) GetValidatorIDs(subnetID ids.ID) []ids.NodeID + func (m *MockManager) GetWeight(subnetID ids.ID, nodeID ids.NodeID) uint64 + func (m *MockManager) NumSubnets() int + func (m *MockManager) RecalculateStakes(subnetID ids.ID) error + func (m *MockManager) RegisterSetCallbackListener(subnetID ids.ID, listener validators.SetCallbackListener) + func (m *MockManager) Remove(subnetID ids.ID) error + func (m *MockManager) RemoveWeight(subnetID ids.ID, nodeID ids.NodeID, weight uint64) error + func (m *MockManager) String() string + func (m *MockManager) TotalWeight(subnetID ids.ID) (uint64, error) + type MockManagerMockRecorder struct + func (mr *MockManagerMockRecorder) Add(subnetID, arg1 any) *gomock.Call + func (mr *MockManagerMockRecorder) AddStaker(subnetID, nodeID, pk, txID, weight any) *gomock.Call + func (mr *MockManagerMockRecorder) AddWeight(subnetID, nodeID, weight any) *gomock.Call + func (mr *MockManagerMockRecorder) Contains(subnetID any) *gomock.Call + func (mr *MockManagerMockRecorder) Count() *gomock.Call + func (mr *MockManagerMockRecorder) Get(subnetID any) *gomock.Call + func (mr *MockManagerMockRecorder) GetByWeight(subnetID, minWeight any) *gomock.Call + func (mr *MockManagerMockRecorder) GetMap(subnetID any) *gomock.Call + func (mr *MockManagerMockRecorder) GetValidator(subnetID, nodeID any) *gomock.Call + func (mr *MockManagerMockRecorder) GetValidatorIDs(subnetID any) *gomock.Call + func (mr *MockManagerMockRecorder) GetWeight(subnetID, nodeID any) *gomock.Call + func (mr *MockManagerMockRecorder) NumSubnets() *gomock.Call + func (mr *MockManagerMockRecorder) RecalculateStakes(subnetID any) *gomock.Call + func (mr *MockManagerMockRecorder) RegisterSetCallbackListener(subnetID, listener any) *gomock.Call + func (mr *MockManagerMockRecorder) Remove(subnetID any) *gomock.Call + func (mr *MockManagerMockRecorder) RemoveWeight(subnetID, nodeID, weight any) *gomock.Call + func (mr *MockManagerMockRecorder) String() *gomock.Call + func (mr *MockManagerMockRecorder) TotalWeight(subnetID any) *gomock.Call + type MockSet struct + func NewMockSet(ctrl *gomock.Controller) *MockSet + func (m *MockSet) Add(nodeID ids.NodeID, pk []byte, weight uint64) error + func (m *MockSet) AddWeight(nodeID ids.NodeID, weight uint64) error + func (m *MockSet) Contains(nodeID ids.NodeID) bool + func (m *MockSet) EXPECT() *MockSetMockRecorder + func (m *MockSet) Get(nodeID ids.NodeID) (*validators.Validator, bool) + func (m *MockSet) GetMap() map[ids.NodeID]*validators.Validator + func (m *MockSet) Len() int + func (m *MockSet) List() []*validators.Validator + func (m *MockSet) Remove(nodeID ids.NodeID) error + func (m *MockSet) RemoveWeight(nodeID ids.NodeID, weight uint64) error + func (m *MockSet) Sample(seed uint64) (ids.NodeID, error) + func (m *MockSet) String() string + func (m *MockSet) Weight() uint64 + type MockSetCallbackListener struct + func NewMockSetCallbackListener(ctrl *gomock.Controller) *MockSetCallbackListener + func (m *MockSetCallbackListener) EXPECT() *MockSetCallbackListenerMockRecorder + func (m *MockSetCallbackListener) OnValidatorAdded(nodeID ids.NodeID, pk *bls.PublicKey, txID ids.ID, weight uint64) + func (m *MockSetCallbackListener) OnValidatorRemoved(nodeID ids.NodeID, weight uint64) + func (m *MockSetCallbackListener) OnValidatorWeightChanged(nodeID ids.NodeID, oldWeight, newWeight uint64) + type MockSetCallbackListenerMockRecorder struct + func (mr *MockSetCallbackListenerMockRecorder) OnValidatorAdded(nodeID, pk, txID, weight any) *gomock.Call + func (mr *MockSetCallbackListenerMockRecorder) OnValidatorRemoved(nodeID, weight any) *gomock.Call + func (mr *MockSetCallbackListenerMockRecorder) OnValidatorWeightChanged(nodeID, oldWeight, newWeight any) *gomock.Call + type MockSetMockRecorder struct + func (mr *MockSetMockRecorder) Add(nodeID, pk, weight any) *gomock.Call + func (mr *MockSetMockRecorder) AddWeight(nodeID, weight any) *gomock.Call + func (mr *MockSetMockRecorder) Contains(nodeID any) *gomock.Call + func (mr *MockSetMockRecorder) Get(nodeID any) *gomock.Call + func (mr *MockSetMockRecorder) GetMap() *gomock.Call + func (mr *MockSetMockRecorder) Len() *gomock.Call + func (mr *MockSetMockRecorder) List() *gomock.Call + func (mr *MockSetMockRecorder) Remove(nodeID any) *gomock.Call + func (mr *MockSetMockRecorder) RemoveWeight(nodeID, weight any) *gomock.Call + func (mr *MockSetMockRecorder) Sample(seed any) *gomock.Call + func (mr *MockSetMockRecorder) String() *gomock.Call + func (mr *MockSetMockRecorder) Weight() *gomock.Call + type MockState struct + func NewMockState(ctrl *gomock.Controller) *MockState + func (m *MockState) ApplyValidatorPublicKeyDiffs(ctx context.Context, arg1 map[ids.NodeID]*validators.GetValidatorOutput, ...) error + func (m *MockState) ApplyValidatorWeightDiffs(ctx context.Context, arg1 map[ids.NodeID]*validators.GetValidatorOutput, ...) error + func (m *MockState) EXPECT() *MockStateMockRecorder + func (m *MockState) GetCurrentHeight(ctx context.Context) (uint64, error) + func (m *MockState) GetCurrentValidatorSet(ctx context.Context, subnetID ids.ID) (map[ids.ID]*validators.GetCurrentValidatorOutput, uint64, error) + func (m *MockState) GetMinimumHeight(ctx context.Context) (uint64, error) + func (m *MockState) GetSubnetID(ctx context.Context, chainID ids.ID) (ids.ID, error) + func (m *MockState) GetValidatorSet(ctx context.Context, height uint64, subnetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error) + type MockStateMockRecorder struct + func (mr *MockStateMockRecorder) ApplyValidatorPublicKeyDiffs(ctx, arg1, startHeight, endHeight, subnetID any) *gomock.Call + func (mr *MockStateMockRecorder) ApplyValidatorWeightDiffs(ctx, arg1, startHeight, endHeight, subnetID any) *gomock.Call + func (mr *MockStateMockRecorder) GetCurrentHeight(ctx any) *gomock.Call + func (mr *MockStateMockRecorder) GetCurrentValidatorSet(ctx, subnetID any) *gomock.Call + func (mr *MockStateMockRecorder) GetMinimumHeight(ctx any) *gomock.Call + func (mr *MockStateMockRecorder) GetSubnetID(ctx, chainID any) *gomock.Call + func (mr *MockStateMockRecorder) GetValidatorSet(ctx, height, subnetID any) *gomock.Call + type Set struct + func NewSet(ctrl *gomock.Controller) *Set + func (m *Set) Add(nodeID ids.NodeID, pk []byte, weight uint64) error + func (m *Set) AddWeight(nodeID ids.NodeID, weight uint64) error + func (m *Set) Contains(nodeID ids.NodeID) bool + func (m *Set) EXPECT() *SetMockRecorder + func (m *Set) Get(nodeID ids.NodeID) (*validators.Validator, bool) + func (m *Set) Len() int + func (m *Set) List() []*validators.Validator + func (m *Set) Remove(nodeID ids.NodeID) error + func (m *Set) RemoveWeight(nodeID ids.NodeID, weight uint64) error + func (m *Set) Sample(seed uint64) (ids.NodeID, error) + func (m *Set) String() string + func (m *Set) Weight() uint64 + type SetMockRecorder struct + func (mr *SetMockRecorder) Add(nodeID, pk, weight any) *gomock.Call + func (mr *SetMockRecorder) AddWeight(nodeID, weight any) *gomock.Call + func (mr *SetMockRecorder) Contains(nodeID any) *gomock.Call + func (mr *SetMockRecorder) Get(nodeID any) *gomock.Call + func (mr *SetMockRecorder) Len() *gomock.Call + func (mr *SetMockRecorder) List() *gomock.Call + func (mr *SetMockRecorder) Remove(nodeID any) *gomock.Call + func (mr *SetMockRecorder) RemoveWeight(nodeID, weight any) *gomock.Call + func (mr *SetMockRecorder) Sample(seed any) *gomock.Call + func (mr *SetMockRecorder) String() *gomock.Call + func (mr *SetMockRecorder) Weight() *gomock.Call + type State struct + func NewState(ctrl *gomock.Controller) *State + func (m *State) EXPECT() *StateMockRecorder + func (m *State) GetCurrentHeight(ctx context.Context) (uint64, error) + func (m *State) GetMinimumHeight(ctx context.Context) (uint64, error) + func (m *State) GetSubnetID(ctx context.Context, chainID ids.ID) (ids.ID, error) + func (m *State) GetValidatorSet(ctx context.Context, height uint64, subnetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error) + type StateMockRecorder struct + func (mr *StateMockRecorder) GetCurrentHeight(ctx any) *gomock.Call + func (mr *StateMockRecorder) GetMinimumHeight(ctx any) *gomock.Call + func (mr *StateMockRecorder) GetSubnetID(ctx, chainID any) *gomock.Call + func (mr *StateMockRecorder) GetValidatorSet(ctx, height, subnetID any) *gomock.Call Other modules containing this package github.com/luxfi/node/v2