Take care of backporting errors

This commit is contained in:
lateminer
2018-10-13 02:36:24 +03:00
parent 8e919e9d59
commit a20e1a0db9
2 changed files with 3 additions and 2 deletions

View File

@@ -173,8 +173,8 @@ UniValue abortrescan(const UniValue& params, bool fHelp)
+ HelpExampleRpc("abortrescan", "")
);
if (!pwallet->IsScanning() || pwallet->IsAbortingRescan()) return false;
pwallet->AbortRescan();
if (!pwalletMain->IsScanning() || pwalletMain->IsAbortingRescan()) return false;
pwalletMain->AbortRescan();
return true;
}