Skip to content

Commit

Permalink
fix: don't register confirmed/interrupted predicates on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Oct 9, 2023
1 parent 947b11e commit 1539bef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/chainhook-cli/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ impl Service {
};
leftover_scans.push((predicate.clone(), Some(scanning_data)));
}
_ => {}
PredicateStatus::UnconfirmedExpiration(_) => {}
PredicateStatus::ConfirmedExpiration(_) | PredicateStatus::Interrupted(_) => {
// Confirmed and Interrupted predicates don't need to be reregistered.
continue;
}
}
match chainhook_config.register_specification(predicate) {
Ok(_) => {
Expand Down

0 comments on commit 1539bef

Please sign in to comment.