removing verbose transactions (#8)

This commit is contained in:
galactus 2023-12-04 21:49:36 +01:00 committed by GitHub
parent 658e772482
commit bae8b36465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -132,7 +132,7 @@ pub async fn start_tracking_banking_stage_errors(
)
.await
.unwrap();
log::info!("started geyser banking stage subscription");
while let Some(message) = geyser_stream.next().await {
let Ok(message) = message else {
continue;
@ -143,6 +143,9 @@ pub async fn start_tracking_banking_stage_errors(
};
if let yellowstone_grpc_proto::prelude::subscribe_update::UpdateOneof::BankingTransactionErrors(transaction) = update {
if transaction.error.is_none() && transaction.accounts.is_empty() {
continue;
}
BANKING_STAGE_ERROR_EVENT_COUNT.inc();
let sig = transaction.signature.to_string();
match slot_by_errors.get_mut(&transaction.slot) {