From 628fdcdd490b35fae2149c69bd3ffab3e3f63a20 Mon Sep 17 00:00:00 2001 From: j-berman Date: Fri, 1 Jul 2022 08:30:49 -0700 Subject: continue pool pruning even if a tx can't be found --- src/cryptonote_core/tx_pool.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/cryptonote_core/tx_pool.h') diff --git a/src/cryptonote_core/tx_pool.h b/src/cryptonote_core/tx_pool.h index 62bef6c06..ee2643547 100644 --- a/src/cryptonote_core/tx_pool.h +++ b/src/cryptonote_core/tx_pool.h @@ -406,6 +406,13 @@ namespace cryptonote */ void set_txpool_max_weight(size_t bytes); + /** + * @brief reduce the cumulative txpool weight by the weight provided + * + * @param weight the weight to reduce the total txpool weight by + */ + void reduce_txpool_weight(size_t weight); + #define CURRENT_MEMPOOL_ARCHIVE_VER 11 #define CURRENT_MEMPOOL_TX_DETAILS_ARCHIVE_VER 13 -- cgit v1.2.3