diff options
| author | tobtoht <tob@featherwallet.org> | 2025-11-12 09:20:34 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2025-11-12 09:20:34 +0000 |
| commit | 14f3d408ada67037d6533af5d969201ffd2af6fe (patch) | |
| tree | 57b0eeb2c994258669a38ace7a7ffffb048b77e9 | |
| parent | 6f2574d9d2a38a637aff47a59968edec8485c732 (diff) | |
| parent | 90dad18bfbe3275142e2f3fe33017cd65486a20f (diff) | |
| download | monzero-core-14f3d408ada67037d6533af5d969201ffd2af6fe.tar.gz monzero-core-14f3d408ada67037d6533af5d969201ffd2af6fe.tar.xz monzero-core-14f3d408ada67037d6533af5d969201ffd2af6fe.zip | |
Merge pull request #10204
90dad18 tx pool: only increment m_txpool_weight for newly added pool txs (j-berman)
| -rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index b44fcbe28..40c004da4 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -344,7 +344,8 @@ namespace cryptonote } tvc.m_verifivation_failed = false; - m_txpool_weight += tx_weight; + if (tvc.m_added_to_pool) + m_txpool_weight += tx_weight; ++m_cookie; |
