Whenever -blocksonly is specified, there is implicitly a zero size mempool. However, there is still a non-zero value for -maxmempool which will be shared with dbcache, leading to 300 MB extra usage. Fix this.
#if defined(HAVE_CONFIG_H)
#include <configbitcoin-config.h>
#endif
#include <init.h>
#include <kernelchecks.h>
#include <kernelmempool_persist.h>
#include <kernelvalidation_cache_sizes.h>