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.
#include <utilsyserror.h>
#include <utilsystem.h>
#include <utilthread.h>
#include <utilthreadnames.h>
#include <utiltranslation.h>
#include <validation.h>
#include <validationinterface.h>
#include <walletinitinterface.h>
#include <algorithm>
#include <condition_variable>
#include <cstdint>
#include <cstdio>
#include <fstream>
#include <functional>
#include <set>
#include <string>
#include <thread>
#include <vector>
#ifndef WIN32
#include <cerrno>
#include <signal.h>
#include <sysstat.h>
#endif
#include <boostsignals2signal.hpp>
#if ENABLE_ZMQ
#include <zmqzmqabstractnotifier.h>
#include <zmqzmqnotificationinterface.h>
#include <zmqzmqrpc.h>
#endif
using kernel::DumpMempool;