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

Commit

Permalink
replace debug assertion with a log
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian committed Apr 24, 2023
1 parent 89a1a16 commit 3db92ba
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions node/core/dispute-coordinator/src/initialized.rs
Expand Up @@ -366,10 +366,13 @@ impl Initialized {
);

let inclusions = self.scraper.get_blocks_including_candidate(&candidate_hash);
debug_assert!(
!inclusions.is_empty(),
"Couldn't find inclusion parent for an unapplied slash",
);
if inclusions.is_empty() {
gum::info!(
target: LOG_TARGET,
"Couldn't find inclusion parent for an unapplied slash",
);
return
}

// Find the first inclusion parent that we can use
// to generate key ownership proof on.
Expand Down

0 comments on commit 3db92ba

Please sign in to comment.