mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +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
|
||||
macro_rules! discard_worst {
|
||||
($this:ident, $removed:ident, [$($limit:ident => $pool:ident),*] ) => {
|
||||
($this:ident, $removed:ident, [$($limit:ident => $pool:ident),* $(,)*]) => {
|
||||
$ (
|
||||
while $this
|
||||
.config
|
||||
@ -806,10 +806,10 @@ impl<T: TransactionOrdering> TxPool<T> {
|
||||
|
||||
discard_worst!(
|
||||
self, removed, [
|
||||
pending_limit => pending_pool,
|
||||
basefee_limit => basefee_pool,
|
||||
blob_limit => blob_pool,
|
||||
queued_limit => queued_pool
|
||||
pending_limit => pending_pool,
|
||||
basefee_limit => basefee_pool,
|
||||
blob_limit => blob_pool,
|
||||
queued_limit => queued_pool,
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user