Move RecoverKeysOnlyFilter into RecoverDataBaseFile

This commit is contained in:
Andrew Chow
2020-05-15 19:45:19 -04:00
parent 9ea2d258b4
commit ea337f2d03
3 changed files with 21 additions and 36 deletions

View File

@@ -122,9 +122,7 @@ static bool SalvageWallet(const fs::path& path)
}
// Perform the recovery
CWallet dummy_wallet(nullptr, WalletLocation(), WalletDatabase::CreateDummy());
std::string backup_filename;
return RecoverDatabaseFile(path, (void*)&dummy_wallet, RecoverKeysOnlyFilter, backup_filename);
return RecoverDatabaseFile(path);
}
bool ExecuteWalletToolFunc(const std::string& command, const std::string& name)