aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.h
diff options
context:
space:
mode:
authorj-berman <justinberman@protonmail.com>2022-07-01 08:30:49 -0700
committerj-berman <justinberman@protonmail.com>2022-07-26 17:28:02 -0700
commitfac7c4364427eacbf513ae7ab813179995722920 (patch)
tree1af2efa7330927f433a9b1b1ff3f1e7afce772c9 /src/cryptonote_core/tx_pool.h
parentMerge pull request #8435 (diff)
downloadmonero-fac7c4364427eacbf513ae7ab813179995722920.tar.xz
continue pool pruning even if a tx can't be found
Diffstat (limited to 'src/cryptonote_core/tx_pool.h')
-rw-r--r--src/cryptonote_core/tx_pool.h7
1 files changed, 7 insertions, 0 deletions
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