Skip to content

Commit

Permalink
only index successful tx (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xaptosj authored Feb 5, 2025
1 parent 40ca7f3 commit 606cc70
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ impl Processable for Extractor {
.map(|txn| {
let txn_version = txn.version as i64;
let txn_info = match txn.info.as_ref() {
Some(info) => info,
Some(info) => {
if info.success {
info
} else {
return (vec![], vec![]);
}
}
None => {
tracing::warn!(
transaction_version = txn_version,
Expand Down

0 comments on commit 606cc70

Please sign in to comment.