neoneo-go/pkg/rpc/response/result/validator.go
Roman Khimov b83e84ca08 core: switch to the new voting system (via native NEO contract)
It has all the methods required now, so you can register, vote and get
voting results. Fixes #865.
2020-04-27 16:06:50 +03:00

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"`
}