Browse Source

Conform to go-wire new TypeByte behavior for PrivValidator as well

pull/176/head
Jae Kwon 9 years ago
parent
commit
b9519391c2
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      types/priv_validator.go

+ 6
- 6
types/priv_validator.go View File

@ -35,12 +35,12 @@ func voteToStep(vote *Vote) int8 {
}
type PrivValidator struct {
Address []byte `json:"address"`
PubKey crypto.PubKeyEd25519 `json:"pub_key"`
PrivKey crypto.PrivKeyEd25519 `json:"priv_key"`
LastHeight int `json:"last_height"`
LastRound int `json:"last_round"`
LastStep int8 `json:"last_step"`
Address []byte `json:"address"`
PubKey crypto.PubKey `json:"pub_key"`
PrivKey crypto.PrivKey `json:"priv_key"`
LastHeight int `json:"last_height"`
LastRound int `json:"last_round"`
LastStep int8 `json:"last_step"`
// For persistence.
// Overloaded for testing.


Loading…
Cancel
Save