Split SetWalletFlags into Add/LoadWalletFlags

Remove memonly bool and follow typical Add and Load pattern used
everywhere else.
This commit is contained in:
Andrew Chow
2020-05-21 23:15:41 -04:00
parent d9cd095b59
commit 3a9aba21a4
3 changed files with 19 additions and 8 deletions

View File

@@ -544,7 +544,7 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
} else if (strType == DBKeys::FLAGS) {
uint64_t flags;
ssValue >> flags;
if (!pwallet->SetWalletFlags(flags, true)) {
if (!pwallet->LoadWalletFlags(flags)) {
strErr = "Error reading wallet database: Unknown non-tolerable wallet flags found";
return false;
}