Documentation
¶
Overview ¶
Package validatorstest provides test utilities for validators
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestValidator ¶ added in v1.11.14
type TestValidator struct {
// contains filtered or unexported fields
}
TestValidator is a test validator implementation
func NewTestValidator ¶ added in v1.11.14
func NewTestValidator(id string, weight uint64) *TestValidator
NewTestValidator creates a new test validator
func (*TestValidator) ID ¶ added in v1.11.14
func (v *TestValidator) ID() string
ID returns the validator's unique identifier
func (*TestValidator) PublicKey ¶ added in v1.11.14
func (v *TestValidator) PublicKey() []byte
PublicKey returns the validator's public key
func (*TestValidator) Weight ¶ added in v1.11.14
func (v *TestValidator) Weight() uint64
Weight returns the validator's stake weight
Click to show internal directories.
Click to hide internal directories.