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

Commit

Permalink
A few more..
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimitrov committed Feb 24, 2023
1 parent 266c33c commit 2132619
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion node/core/provisioner/src/disputes/prioritized_selection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,15 @@ where

// Fetch the onchain disputes. We'll do a prioritization based on them.
let onchain = match get_onchain_disputes(sender, leaf.hash).await {
Ok(r) => r,
Ok(r) => {
gum::trace!(
target: LOG_TARGET,
?leaf,
"Successfully fetched {} onchain disputes",
r.len()
);
r
},
Err(GetOnchainDisputesError::NotSupported(runtime_api_err, relay_parent)) => {
// Runtime version is checked before calling this method, so the error below should never happen!
gum::error!(
Expand Down Expand Up @@ -130,6 +138,7 @@ where
},
};

gum::trace!(target: LOG_TARGET, ?leaf, "Fetching recent disputes");
let recent_disputes = request_disputes(sender).await;
gum::trace!(
target: LOG_TARGET,
Expand All @@ -138,6 +147,7 @@ where
recent_disputes.len(),
onchain.len(),
);
gum::trace!(target: LOG_TARGET, ?leaf, "Fetched recent disputes");

// Filter out unconfirmed disputes. However if the dispute is already onchain - don't skip it.
// In this case we'd better push as much fresh votes as possible to bring it to conclusion faster.
Expand Down

0 comments on commit 2132619

Please sign in to comment.