mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Skip mempool.dat when wallet is starting in "zap" mode (#2782)
This commit is contained in:
parent
46d875100b
commit
35914e0842
@ -4504,6 +4504,11 @@ static const uint64_t MEMPOOL_DUMP_VERSION = 1;
|
||||
|
||||
bool LoadMempool(void)
|
||||
{
|
||||
if (GetBoolArg("-zapwallettxes", false)) {
|
||||
LogPrintf("Skipping mempool.dat because of zapwallettxes\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
int64_t nExpiryTimeout = GetArg("-mempoolexpiry", DEFAULT_MEMPOOL_EXPIRY) * 60 * 60;
|
||||
FILE* filestr = fopen((GetDataDir() / "mempool.dat").string().c_str(), "rb");
|
||||
CAutoFile file(filestr, SER_DISK, CLIENT_VERSION);
|
||||
|
Loading…
Reference in New Issue
Block a user