Share unused mempool memory with coincache
commitba3cecf5c436bf38efad045d46e0aa26210d2234
authorPieter Wuille <pieter.wuille@gmail.com>
Thu, 22 Dec 2016 03:15:13 +0000 (21 19:15 -0800)
committerPieter Wuille <pieter.wuille@gmail.com>
Thu, 22 Dec 2016 23:04:05 +0000 (22 15:04 -0800)
tree316c6db06dc1c8a1b502663fb5d742c72c0692c8
parente8cfe1ee2d01c493b758a67ad14707dca15792ea
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.
src/init.cpp
src/validation.cpp