Documentation ¶
Index ¶
- type State
- func (vm *State) GetCurrentHeight(ctx context.Context) (uint64, error)
- func (vm *State) GetCurrentValidatorSet(ctx context.Context, subnetID ids.ID) (map[ids.ID]*validators.GetCurrentValidatorOutput, uint64, error)
- func (vm *State) GetMinimumHeight(ctx context.Context) (uint64, error)
- func (vm *State) GetSubnetID(ctx context.Context, chainID ids.ID) (ids.ID, error)
- func (vm *State) GetValidatorSet(ctx context.Context, height uint64, subnetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { T testing.TB CantGetMinimumHeight, CantGetCurrentHeight, CantGetSubnetID, CantGetValidatorSet bool CantGetCurrentValidatorSet bool GetMinimumHeightF func(ctx context.Context) (uint64, error) GetCurrentHeightF func(ctx context.Context) (uint64, error) GetSubnetIDF func(ctx context.Context, chainID ids.ID) (ids.ID, error) GetValidatorSetF func(ctx context.Context, height uint64, subnetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error) GetCurrentValidatorSetF func(ctx context.Context, subnetID ids.ID) (map[ids.ID]*validators.GetCurrentValidatorOutput, uint64, error) }
func (*State) GetCurrentHeight ¶
func (*State) GetCurrentValidatorSet ¶ added in v1.11.13
func (*State) GetMinimumHeight ¶
func (*State) GetSubnetID ¶
func (*State) GetValidatorSet ¶
Click to show internal directories.
Click to hide internal directories.