diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2016-12-21 19:15:13 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-12-22 15:04:05 -0800 |
commit | ba3cecf5c436bf38efad045d46e0aa26210d2234 (patch) | |
tree | 316c6db06dc1c8a1b502663fb5d742c72c0692c8 /src/memusage.h | |
parent | e8cfe1ee2d01c493b758a67ad14707dca15792ea (diff) |
Share unused mempool memory with coincache
If the mempool is not completely full, treat the difference between
the maximum size and the actual usage as available for the coin cache.
This also changes the early flush trigger from (usage > 0.9 * space)
to (usage > 0.9 * space && usage > space - 100MB). This means we're not
permanently leaving 10% of the space unused when the space is large.
Diffstat (limited to 'src/memusage.h')
0 files changed, 0 insertions, 0 deletions