-
Notifications
You must be signed in to change notification settings - Fork 38.7k
init: Get rid of fDisableWallet #8768
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
Conversation
src/wallet/wallet.cpp
Outdated
|
|
||
| bool CWallet::InitLoadWallet() | ||
| { | ||
| if (GetBoolArg("-disablewallet", false)) { |
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.
I wonder why we don't have a constant DEFAULT_DISABLEWALLET like for the other args.
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.
Maybe some constants are too obvious to have a default value. In the future this might change for -disablewallet and we should introduce the default value.
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.
But for consistency it'd make sense to have one. When changing the default it's easy enough to forget one of the GetArgs().
|
Concept ACK |
jonasschnelli
left a comment
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.
jonasschnelli
left a comment
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.
utACK fab9107
laanwj
left a comment
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.
Perfect, utACK fa58edb
…nit.cpp 4dfc8e0 [MOVE-ONLY] Init: move -resync interaction out of init-wallet (step 5) (random-zebra) 1270ef8 [Refactor] Break up Auto-backup monolithic code in init.cpp (random-zebra) 6ab142b [Refactoring] Move sysperms + enabled wallet check in wallet.cpp (random-zebra) d8d723b [wallet] Introduce DEFAULT_DISABLE_WALLET (MarcoFalke) d098e5b init: Get rid of fDisableWallet (random-zebra) Pull request description: Simple refactoring. First two commits are coming from bitcoin#8768. Other commits break up a big chunk of code from init.cpp into more manageable functions in wallet/walletdb. This will make the implementation of auto-backups for multi-wallets cleaner (will now rebase #2337 on top of this one). ACKs for top commit: furszy: All good, code review ACK 4dfc8e0. Fuzzbawls: ACK 4dfc8e0 Tree-SHA512: d87c8aa7bb5293cc9f15650d4329313a63af8f33f08b82dd8e119a75db3608b4c2535322ccae82b404a68801dba76d858236b9e0c09bc1800f7f7cc0e8f21383
This moves the disablewallet logic from init.cpp to wallet.cpp
C.f. #7965