mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 23:07:59 +01:00
Enforce salvage is only for BDB wallets
This commit is contained in:
parent
a58b719cf7
commit
6ebc41bf9c
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue