mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-24 09:30:36 +00:00
b83e84ca08
It has all the methods required now, so you can register, vote and get voting results. Fixes #865.
13 lines
318 B
Go
13 lines
318 B
Go
package result
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
|
)
|
|
|
|
// Validator used for the representation of
|
|
// state.Validator on the RPC Server.
|
|
type Validator struct {
|
|
PublicKey keys.PublicKey `json:"publickey"`
|
|
Votes int64 `json:"votes,string"`
|
|
Active bool `json:"active"`
|
|
}
|