Skip to content

Commit 37c80f7

Browse files
author
Ludo Galabru
committed
fix: ignore transaction aborting that we could not classify
1 parent 206678f commit 37c80f7

File tree

1 file changed

+9
-1
lines changed
  • components/chainhook-event-observer/src/indexer/stacks

1 file changed

+9
-1
lines changed

components/chainhook-event-observer/src/indexer/stacks/mod.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,15 @@ pub fn standardize_stacks_block(
270270
match get_tx_description(&tx.raw_tx, &tx_events) {
271271
Ok(desc) => desc,
272272
Err(e) => {
273-
return Err(format!("unable to standardize block ({})", e.to_string()));
273+
if tx.status.eq("abort_by_response") {
274+
// We should probably revisit this approach
275+
continue;
276+
}
277+
return Err(format!(
278+
"unable to standardize block #{} ({})",
279+
block.block_height,
280+
e.to_string()
281+
));
274282
}
275283
};
276284
let events = tx_events

0 commit comments

Comments
 (0)