forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 720
[Wallet] Introduce wallets directory configuration and external wallet files capabilities #2423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
a1bef4f
Refactor: Modernize disallowed copy constructors/assignment
danra 5b31813
Use unique_ptr for dbenv (DbEnv)
practicalswift 71a4701
Add -walletdir parameter to specify custom wallet dir
furszy 359b01d
Add release notes for -walletdir and wallets/ dir
meshcollider 03db5c8
Default walletdir is wallets/ if it exists
meshcollider dcb43ea
Create walletdir if datadir doesn't exist and correct tests
furszy 1dc2219
Don't allow relative -walletdir paths
ryanofsky a238a8d
Add a lock to the wallet directory
meshcollider ddcfd4a
Enable test for wallet directory locking
furszy d8539bb
Generalise walletdir lock error message for correctness
meshcollider 6a0380a
Make .walletlock distinct from .lock
meshcollider 434ed75
Abstract LockDirectory into system.cpp
furszy 8b8725d
wallet_tests: Use dummy wallet instance instead of wallet pointer.
furszy d36185a
wallet: unify backup creation process.
furszy 9b2dae1
Allow wallet files in multiple directories
furszy daa7fe5
Allow wallet files not in -walletdir directory
ryanofsky c2d3a07
Create new wallet databases as directories rather than files
ryanofsky 23458ca
GUI: Implement and connect WalletModel::getWalletPath().
furszy d9e1c6b
Abstract VerifyWalletPath and connect it to init and GUI.
furszy d86cd4f
wallet: Add missing check for backup to source wallet file.
furszy 9ae619a
Test: Use specific testing setups for wallet_zkeys_tests tests
furszy 16b4651
util: Fix multiple use of LockDirectory This commit fixes problems w…
laanwj 4cae8dc
test: Add unit test for LockDirectory Add a unit test for LockDirect…
laanwj 565abcd
db: fix db path not removed from the open db environments map.
furszy 351d2c8
wallet_tests: mock wallet db.
furszy 7aa251d
wallet: Fix backupwallet for multiwallets
domob1812 12a1e39
[BUG] Sanitize wallet name in GetUniqueWalletBackupName
random-zebra 91b112b
[Refactor][Bug] Fix automatic backups, final code deduplication
random-zebra e7aa6bd
[Refactor] First load all wallets, then back em
random-zebra 524103f
Implement and connect CWallet::GetPathToFile to GUI.
furszy f765611
bugfix: Remove dangling wallet env instance
promag 056f4e8
[GUI] settings information widget setting the correct data directory.
furszy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit f6690b2
Same as the previous commit, these notes could be slightly reorganized, as
-wallet/-walletdiroptions are both included in this release for the first time.But we can work on this on a separate PR too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah agree, while we don't forget it, it can be done here or in a follow up PR.