mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 23:42:23 +00:00
b83e84ca08
It has all the methods required now, so you can register, vote and get voting results. Fixes #865.
13 lines
225 B
Go
13 lines
225 B
Go
package state
|
|
|
|
import (
|
|
"math/big"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
|
)
|
|
|
|
// Validator holds the state of a validator (its key and votes balance).
|
|
type Validator struct {
|
|
Key *keys.PublicKey
|
|
Votes *big.Int
|
|
}
|