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

Commit

Permalink
Problem (Fix #1007): liveness tracker doesn't contain information abo…
Browse files Browse the repository at this point in the history
…ut some nodes in multi-node integration test

Solution:
- Check `tendermint_validator_addresses` when `liveness_tracker` not
found, if cleaned up, log error, otherwise log info.
  • Loading branch information
yihuang committed Feb 12, 2020
1 parent 169c535 commit b691bcd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion chain-abci/src/app/app_init/validator_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,18 @@ impl ValidatorState {
liveness_tracker.update(block_height, signed);
}
None => {
log::warn!("Validator in `last_commit_info` not found in liveness tracker");
if let Some(staking_address) = self.tendermint_validator_addresses.get(tm_address) {
log::info!(
"Validator in `last_commit_info` not found in liveness tracker: {}: {}",
tm_address,
staking_address
);
} else {
log::error!(
"Validator in `last_commit_info` is cleaned up: {}",
tm_address
);
}
}
}
}
Expand Down

0 comments on commit b691bcd

Please sign in to comment.