-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wallet: Handle duplicate fileid exception
Summary: Loading two identical wallet files caused a crash > Handle the duplicate fileid exception thrown at CheckUniqueFileid in tow cases: > > - when duplicate wallets are set on the command line - catch in LoadWallets; > - when a duplicate wallet is loaded dynamically - catch in LoadWallet. This is a backport of Core [[bitcoin/bitcoin#16923 | PR16923]] Test Plan: `ninja all check-all` In bitcoin-qt, backup the currently open wallet to a file named wallet.dat, then in the console window type `loadwallet /path/to/wallet/`. Check that the program does not crash and you get a useful error message dialog. Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D8898
- Loading branch information
Showing
5 changed files
with
49 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters