* Add logging to replay_stage

* locktower logging
This commit is contained in:
carllin
2019-07-10 15:52:31 -07:00
committed by GitHub
parent 35ec7a5156
commit b50a3bae72
2 changed files with 20 additions and 2 deletions

View File

@@ -118,6 +118,10 @@ impl Tower {
}
let vote_state = VoteState::from(&account);
if vote_state.is_none() {
info!(
"vote state for bank: {}, validator: {} is none",
bank_slot, key
);
datapoint_warn!(
"tower_warn",
(
@@ -129,6 +133,10 @@ impl Tower {
continue;
}
let mut vote_state = vote_state.unwrap();
info!(
"Vote states for slot: {}, account: {}, vote_states {:#?}",
bank_slot, key, vote_state.votes
);
if key == self.epoch_stakes.delegate_pubkey
|| vote_state.node_pubkey == self.epoch_stakes.delegate_pubkey
@@ -152,6 +160,10 @@ impl Tower {
let start_root = vote_state.root_slot;
vote_state.process_slot_vote_unchecked(bank_slot);
info!(
"After simultated vote, vote states for slot: {}, account: {}, vote_states {:#?}",
bank_slot, key, vote_state.votes
);
for vote in &vote_state.votes {
Self::update_ancestor_lockouts(&mut stake_lockouts, &vote, ancestors);