aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorj-berman <justinberman@protonmail.com>2025-10-27 17:14:16 -0700
committerj-berman <justinberman@protonmail.com>2025-11-11 16:31:37 -0800
commit90dad18bfbe3275142e2f3fe33017cd65486a20f (patch)
tree57b0eeb2c994258669a38ace7a7ffffb048b77e9 /tests
parent6f2574d9d2a38a637aff47a59968edec8485c732 (diff)
downloadmonzero-core-90dad18bfbe3275142e2f3fe33017cd65486a20f.tar.gz
monzero-core-90dad18bfbe3275142e2f3fe33017cd65486a20f.tar.xz
monzero-core-90dad18bfbe3275142e2f3fe33017cd65486a20f.zip
tx pool: only increment m_txpool_weight for newly added pool txs
Otherwise we can end up double counting txs towards the weight, which can over-state the pool weight. E.g. relay tx to node in stem phase, add its weight to pool weight, then receive tx from another node, then bump the pool weight again. That double counts the tx towards the pool weight. If the weight exceeds the max, the node will "prune" txs from the pool. Thus, over-counting is probably a cause of, but perhaps not the only cause of: https://github.com/seraphis-migration/monero/issues/148
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions