Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Merge #583
Browse files Browse the repository at this point in the history
583: Problem: chain-abci panic due to failed serialization (CRO-575) r=tomtau a=yihuang

Solution:
Skip serialization of invalid json field.

Co-authored-by: yihuang <huang@crypto.com>
  • Loading branch information
bors[bot] and yihuang authored Nov 13, 2019
2 parents 2bd518d + 135238d commit 4fa7b87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chain-abci/src/app/app_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub struct ChainNodeState {
pub network_params: NetworkParameters,
/// council nodes metadata
/// FIXME: delete node metadata if voting power == 0 for longer than unbonding time
#[serde(skip)]
pub council_nodes_by_power: BTreeMap<(TendermintVotePower, StakedStateAddress), CouncilNode>,
/// stores staking account address corresponding to tendermint validator addresses
pub tendermint_validator_addresses: BTreeMap<TendermintValidatorAddress, StakedStateAddress>,
Expand Down

0 comments on commit 4fa7b87

Please sign in to comment.