diff options
author | j-berman <justinberman@protonmail.com> | 2022-07-01 08:30:49 -0700 |
---|---|---|
committer | j-berman <justinberman@protonmail.com> | 2022-07-26 17:28:02 -0700 |
commit | fac7c4364427eacbf513ae7ab813179995722920 (patch) | |
tree | 1af2efa7330927f433a9b1b1ff3f1e7afce772c9 /src/cryptonote_core/tx_pool.h | |
parent | Merge pull request #8435 (diff) | |
download | monero-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.h | 7 |
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 |