Skip to content

Commit

Permalink
Merge pull request #3028 from Conflux-Chain/force_retire_log
Browse files Browse the repository at this point in the history
Add a warning log for force retire.
  • Loading branch information
Pana authored Jan 8, 2025
2 parents 7a06670 + 3afd64e commit 596c8bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/cfxcore/core/src/pos/consensus/round_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,11 @@ impl RoundManager {
);
} else {
diem_debug!("Skip election for elected");
if let Some(node_data) = pos_state.account_node_data(author) {
if node_data.lock_status().force_retired().is_some() {
warn!("The node stops elections for force retire!");
}
}
}
Ok(())
}
Expand Down

0 comments on commit 596c8bd

Please sign in to comment.