Skip to content

Commit

Permalink
fix: ignore transaction aborting that we could not classify
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Apr 10, 2023
1 parent 206678f commit 37c80f7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/chainhook-event-observer/src/indexer/stacks/mod.rs
Expand Up @@ -270,7 +270,15 @@ pub fn standardize_stacks_block(
match get_tx_description(&tx.raw_tx, &tx_events) {
Ok(desc) => desc,
Err(e) => {
return Err(format!("unable to standardize block ({})", e.to_string()));
if tx.status.eq("abort_by_response") {
// We should probably revisit this approach
continue;
}
return Err(format!(
"unable to standardize block #{} ({})",
block.block_height,
e.to_string()
));
}
};
let events = tx_events
Expand Down

0 comments on commit 37c80f7

Please sign in to comment.