Unverified Commit 00c478aa authored by Lldenaurois's avatar Lldenaurois Committed by GitHub
Browse files

Add info logging to dispute activation (#3870)



* Add info logging to dispute activation

* Update node/core/dispute-coordinator/src/real/mod.rs
Co-authored-by: Andronik Ordian's avatarAndronik Ordian <write@reusable.software>
Co-authored-by: Andronik Ordian's avatarAndronik Ordian <write@reusable.software>
parent e335084a
Pipeline #157672 passed with stages
in 47 minutes and 29 seconds
......@@ -737,9 +737,15 @@ async fn handle_import_statements(
let prev_status = recent_disputes.get(&(session, candidate_hash)).map(|x| x.clone());
let status = if is_disputed {
let status = recent_disputes
.entry((session, candidate_hash))
.or_insert(DisputeStatus::active());
let status = recent_disputes.entry((session, candidate_hash)).or_insert_with(|| {
tracing::info!(
target: LOG_TARGET,
?candidate_hash,
session,
"New dispute initiated for candidate.",
);
DisputeStatus::active()
});
// Note: concluded-invalid overwrites concluded-valid,
// so we do this check first. Dispute state machine is
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment