Skip to content

Commit

Permalink
chore: ignore invalid predicates for non-consensus events
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed Oct 24, 2024
1 parent 7584f49 commit 5269732
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/chainhook-sdk/src/chainhooks/stacks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ pub fn evaluate_stacks_predicate_on_block<'a>(
pub fn evaluate_stacks_predicate_on_non_consensus_events<'a>(
events: &'a Vec<StacksNonConsensusEventData>,
chainhook: &'a StacksChainhookInstance,
ctx: &Context,
_ctx: &Context,
) -> (
Vec<&'a StacksNonConsensusEventData>,
BTreeMap<&'a str, &'a BlockIdentifier>,
Expand All @@ -874,9 +874,8 @@ pub fn evaluate_stacks_predicate_on_non_consensus_events<'a>(
| StacksPredicate::StxEvent(_)
| StacksPredicate::PrintEvent(_)
| StacksPredicate::Txid(_) => {
ctx.try_log(|logger| {
slog::error!(logger, "Invalid predicate for non-consensus events: {:?}", chainhook.predicate)
});
// Ignore, possibly expected behavior?
// https://github.com/hirosystems/chainhook/pull/663#discussion_r1814995429
},
};
}
Expand Down

0 comments on commit 5269732

Please sign in to comment.