2019-11-28 16:06:09 +00:00
|
|
|
package state
|
2018-03-21 16:11:04 +00:00
|
|
|
|
|
|
|
import (
|
2020-04-26 17:04:16 +00:00
|
|
|
"math/big"
|
|
|
|
|
2020-03-03 14:21:42 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
2018-03-21 16:11:04 +00:00
|
|
|
)
|
|
|
|
|
2020-04-26 17:04:16 +00:00
|
|
|
// Validator holds the state of a validator (its key and votes balance).
|
2019-11-28 16:06:09 +00:00
|
|
|
type Validator struct {
|
2020-04-26 17:04:16 +00:00
|
|
|
Key *keys.PublicKey
|
|
|
|
Votes *big.Int
|
2019-11-11 15:25:28 +00:00
|
|
|
}
|