Enforce salvage is only for BDB wallets

pull/20202/head
Andrew Chow 4 years ago
parent a58b719cf7
commit 6ebc41bf9c

@ -28,6 +28,7 @@ bool RecoverDatabaseFile(const fs::path& file_path, bilingual_str& error, std::v
DatabaseStatus status; DatabaseStatus status;
options.require_existing = true; options.require_existing = true;
options.verify = false; options.verify = false;
options.require_format = DatabaseFormat::BERKELEY;
std::unique_ptr<WalletDatabase> database = MakeDatabase(file_path, options, status, error); std::unique_ptr<WalletDatabase> database = MakeDatabase(file_path, options, status, error);
if (!database) return false; if (!database) return false;

Loading…
Cancel
Save