forked from TrueCloudLab/neoneo-go
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
|
|
}
|