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