2018-03-21 16:11:04 +00:00
|
|
|
package core
|
|
|
|
|
|
|
|
import (
|
2019-08-27 13:29:42 +00:00
|
|
|
"github.com/CityOfZion/neo-go/pkg/crypto/keys"
|
2018-03-21 16:11:04 +00:00
|
|
|
"github.com/CityOfZion/neo-go/pkg/util"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Validators is a mapping between public keys and ValidatorState.
|
2019-08-27 13:29:42 +00:00
|
|
|
type Validators map[*keys.PublicKey]*ValidatorState
|
2018-03-21 16:11:04 +00:00
|
|
|
|
|
|
|
// ValidatorState holds the state of a validator.
|
|
|
|
type ValidatorState struct {
|
2019-08-27 13:29:42 +00:00
|
|
|
PublicKey *keys.PublicKey
|
2018-03-21 16:11:04 +00:00
|
|
|
Registered bool
|
|
|
|
Votes util.Fixed8
|
|
|
|
}
|