From dfb95559da5e810095b7f2778a1dedf70dc49fce Mon Sep 17 00:00:00 2001 From: Godmode Galactus Date: Thu, 26 Oct 2023 21:38:46 +0200 Subject: [PATCH] removing is_executed bug --- src/main.rs | 3 +++ src/transaction_info.rs | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0043211..57f18a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,6 +70,9 @@ async fn main() { match update { UpdateOneof::BankingTransactionErrors(transaction) => { + if transaction.error.is_none() { + continue; + } log::info!("got banking stage transaction erros"); let sig = transaction.signature.to_string(); match map_of_infos.get_mut(&sig) { diff --git a/src/transaction_info.rs b/src/transaction_info.rs index 8e00362..6eee282 100644 --- a/src/transaction_info.rs +++ b/src/transaction_info.rs @@ -155,7 +155,6 @@ impl TransactionInfo { } } None => { - self.is_executed = true; } } }