Skip to content

Commit 6ebc41b

Browse files
committed
Enforce salvage is only for BDB wallets
1 parent a58b719 commit 6ebc41b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wallet/salvage.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ bool RecoverDatabaseFile(const fs::path& file_path, bilingual_str& error, std::v
2828
DatabaseStatus status;
2929
options.require_existing = true;
3030
options.verify = false;
31+
options.require_format = DatabaseFormat::BERKELEY;
3132
std::unique_ptr<WalletDatabase> database = MakeDatabase(file_path, options, status, error);
3233
if (!database) return false;
3334

0 commit comments

Comments
 (0)