fix: ignore transaction aborting that we could not classify

This commit is contained in:
Ludo Galabru
2023-04-10 14:10:37 -04:00
parent 206678f0d1
commit 37c80f7e83

View File

@@ -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