mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: add missing trace targets (#6739)
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
This commit is contained in:
@ -793,6 +793,7 @@ impl<T: TransactionOrdering> TxPool<T> {
|
|||||||
while $this.$pool.exceeds(&$this.config.$limit)
|
while $this.$pool.exceeds(&$this.config.$limit)
|
||||||
{
|
{
|
||||||
trace!(
|
trace!(
|
||||||
|
target: "txpool",
|
||||||
"discarding transactions from {}, limit: {:?}, curr size: {}, curr len: {}",
|
"discarding transactions from {}, limit: {:?}, curr size: {}, curr len: {}",
|
||||||
stringify!($pool),
|
stringify!($pool),
|
||||||
$this.config.$limit,
|
$this.config.$limit,
|
||||||
@ -804,6 +805,7 @@ impl<T: TransactionOrdering> TxPool<T> {
|
|||||||
let removed_from_subpool = $this.$pool.truncate_pool($this.config.$limit.clone());
|
let removed_from_subpool = $this.$pool.truncate_pool($this.config.$limit.clone());
|
||||||
|
|
||||||
trace!(
|
trace!(
|
||||||
|
target: "txpool",
|
||||||
"removed {} transactions from {}, limit: {:?}, curr size: {}, curr len: {}",
|
"removed {} transactions from {}, limit: {:?}, curr size: {}, curr len: {}",
|
||||||
removed_from_subpool.len(),
|
removed_from_subpool.len(),
|
||||||
stringify!($pool),
|
stringify!($pool),
|
||||||
|
|||||||
Reference in New Issue
Block a user