mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-30 09:33:36 +00:00
17 lines
384 B
Go
17 lines
384 B
Go
|
package core
|
||
|
|
||
|
import (
|
||
|
"github.com/CityOfZion/neo-go/pkg/crypto"
|
||
|
"github.com/CityOfZion/neo-go/pkg/util"
|
||
|
)
|
||
|
|
||
|
// Validators is a mapping between public keys and ValidatorState.
|
||
|
type Validators map[*crypto.PublicKey]*ValidatorState
|
||
|
|
||
|
// ValidatorState holds the state of a validator.
|
||
|
type ValidatorState struct {
|
||
|
PublicKey *crypto.PublicKey
|
||
|
Registered bool
|
||
|
Votes util.Fixed8
|
||
|
}
|