mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: promote trace bad txs to debug (#5714)
This commit is contained in:
@ -35,7 +35,7 @@ use std::{
|
|||||||
};
|
};
|
||||||
use tokio::sync::{mpsc, mpsc::error::TrySendError, oneshot, oneshot::error::RecvError};
|
use tokio::sync::{mpsc, mpsc::error::TrySendError, oneshot, oneshot::error::RecvError};
|
||||||
use tokio_stream::wrappers::{ReceiverStream, UnboundedReceiverStream};
|
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.
|
/// Cache limit of transactions to keep track of for a single peer.
|
||||||
const PEER_TRANSACTION_CACHE_LIMIT: usize = 1024 * 10;
|
const PEER_TRANSACTION_CACHE_LIMIT: usize = 1024 * 10;
|
||||||
@ -589,6 +589,7 @@ where
|
|||||||
self.import_transactions(peer_id, non_blob_txs, TransactionSource::Broadcast);
|
self.import_transactions(peer_id, non_blob_txs, TransactionSource::Broadcast);
|
||||||
|
|
||||||
if has_blob_txs {
|
if has_blob_txs {
|
||||||
|
debug!(target: "net::tx", ?peer_id, "received bad full blob transaction broadcast");
|
||||||
self.report_peer(peer_id, ReputationChangeKind::BadTransactions);
|
self.report_peer(peer_id, ReputationChangeKind::BadTransactions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -856,7 +857,7 @@ where
|
|||||||
// known that this transaction is bad. (e.g. consensus
|
// known that this transaction is bad. (e.g. consensus
|
||||||
// rules)
|
// rules)
|
||||||
if err.is_bad_transaction() && !this.network.is_syncing() {
|
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);
|
this.on_bad_import(err.hash);
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user