Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add info logging to dispute activation #3870

Merged
2 commits merged into from
Sep 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions node/core/dispute-coordinator/src/real/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 disputed initiated for candidate.",
Lldenaurois marked this conversation as resolved.
Show resolved Hide resolved
);
DisputeStatus::active()
});

// Note: concluded-invalid overwrites concluded-valid,
// so we do this check first. Dispute state machine is
Expand Down