Documentation ¶
Index ¶
- type State
- func (vm *State) GetCurrentHeight(ctx context.Context) (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)
- type TestStatedeprecated
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 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) }
func (*State) GetCurrentHeight ¶
func (*State) GetMinimumHeight ¶
func (*State) GetSubnetID ¶
func (*State) GetValidatorSet ¶
Click to show internal directories.
Click to hide internal directories.