mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(txpool): discard_worst compat with suffix comma (#6477)
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
@ -759,7 +759,7 @@ impl<T: TransactionOrdering> TxPool<T> {
|
|||||||
|
|
||||||
// Helper macro that discards the worst transactions for the pools
|
// Helper macro that discards the worst transactions for the pools
|
||||||
macro_rules! discard_worst {
|
macro_rules! discard_worst {
|
||||||
($this:ident, $removed:ident, [$($limit:ident => $pool:ident),*] ) => {
|
($this:ident, $removed:ident, [$($limit:ident => $pool:ident),* $(,)*]) => {
|
||||||
$ (
|
$ (
|
||||||
while $this
|
while $this
|
||||||
.config
|
.config
|
||||||
@ -806,10 +806,10 @@ impl<T: TransactionOrdering> TxPool<T> {
|
|||||||
|
|
||||||
discard_worst!(
|
discard_worst!(
|
||||||
self, removed, [
|
self, removed, [
|
||||||
pending_limit => pending_pool,
|
pending_limit => pending_pool,
|
||||||
basefee_limit => basefee_pool,
|
basefee_limit => basefee_pool,
|
||||||
blob_limit => blob_pool,
|
blob_limit => blob_pool,
|
||||||
queued_limit => queued_pool
|
queued_limit => queued_pool,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user