aboutsummaryrefslogtreecommitdiff
path: root/src/flatfile.h
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2023-04-16 08:49:24 +0100
committerglozow <gloriajzhao@gmail.com>2023-05-10 21:10:44 +0100
commit67b7fecacd0489809690982c89ba2d0acdca938c (patch)
tree6a8526132e59274abbca9dd973ad62dc19ce2d84 /src/flatfile.h
parentc1061acb9d502cdf8c6996c818d9a8a281cbe40c (diff)
[mempool] clear mapDeltas entry if prioritisetransaction sets delta to 0
It's unnecessary to keep the data around, as it doesn't do anything. If prioritisetransaction is called again, we'll make a new entry in mapDeltas. These entries are only deleted when the transaction is mined or conflicted from a block (i.e. not in replacement or eviction), are persisted in mempool.dat, and never expire. If node operators use the RPC to regularly prioritise/de-prioritise transactions, these (meaningless) map entries may hang around forever and take up valuable mempool memory.
Diffstat (limited to 'src/flatfile.h')
0 files changed, 0 insertions, 0 deletions