aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-10-19 15:12:39 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-11-18 11:56:12 -0500
commit6ebc41bf9cb0184554923e84e1935195d356f2b3 (patch)
treec50c2cebedd271890a4769e99fe1c308a8c7b1b1 /src/wallet
parenta58b719cf75e2d97205ec260bcff0d4780fe4fb8 (diff)
downloadbitcoin-6ebc41bf9cb0184554923e84e1935195d356f2b3.tar.xz
Enforce salvage is only for BDB wallets
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/salvage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/salvage.cpp b/src/wallet/salvage.cpp
index c083f0fb31..da5ca7858f 100644
--- a/src/wallet/salvage.cpp
+++ b/src/wallet/salvage.cpp
@@ -28,6 +28,7 @@ bool RecoverDatabaseFile(const fs::path& file_path, bilingual_str& error, std::v
DatabaseStatus status;
options.require_existing = true;
options.verify = false;
+ options.require_format = DatabaseFormat::BERKELEY;
std::unique_ptr<WalletDatabase> database = MakeDatabase(file_path, options, status, error);
if (!database) return false;