Skip to content

Commit

Permalink
fix deserialize power field in validator_update (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jul 17, 2020
1 parent 02fa831 commit d541e5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions rpc/tests/support/block_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@
"pub_key": {
"type": "ed25519",
"data": "AmPqEmF5YNmlv2vu8lEcDeQ3hyR+lymnqx2VixdMEzA="
},
"power": "12681"
}
}
],
"consensus_param_updates": null
Expand Down
1 change: 1 addition & 0 deletions tendermint/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ pub struct Update {
pub pub_key: PublicKey,

/// New voting power
#[serde(default)]
pub power: vote::Power,
}

Expand Down

0 comments on commit d541e5c

Please sign in to comment.