Skip to content

Commit

Permalink
chore: promote trace bad txs to debug (paradigmxyz#5714)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Dec 8, 2023
1 parent 32bf97d commit cf50061
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/net/network/src/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use std::{
};
use tokio::sync::{mpsc, mpsc::error::TrySendError, oneshot, oneshot::error::RecvError};
use tokio_stream::wrappers::{ReceiverStream, UnboundedReceiverStream};
use tracing::trace;
use tracing::{debug, trace};

/// Cache limit of transactions to keep track of for a single peer.
const PEER_TRANSACTION_CACHE_LIMIT: usize = 1024 * 10;
Expand Down Expand Up @@ -589,6 +589,7 @@ where
self.import_transactions(peer_id, non_blob_txs, TransactionSource::Broadcast);

if has_blob_txs {
debug!(target: "net::tx", ?peer_id, "received bad full blob transaction broadcast");
self.report_peer(peer_id, ReputationChangeKind::BadTransactions);
}
}
Expand Down Expand Up @@ -856,7 +857,7 @@ where
// known that this transaction is bad. (e.g. consensus
// rules)
if err.is_bad_transaction() && !this.network.is_syncing() {
trace!(target: "net::tx", ?err, "bad pool transaction import");
debug!(target: "net::tx", ?err, "bad pool transaction import");
this.on_bad_import(err.hash);
continue
}
Expand Down

0 comments on commit cf50061

Please sign in to comment.