File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,18 @@ enum WalletFlags : uint64_t {
53
53
// ! Flag set when a wallet contains no HD seed and no private keys, scripts,
54
54
// ! addresses, and other watch only things, and is therefore "blank."
55
55
// !
56
- // ! The only function this flag serves is to distinguish a blank wallet from
56
+ // ! The main function this flag serves is to distinguish a blank wallet from
57
57
// ! a newly created wallet when the wallet database is loaded, to avoid
58
58
// ! initialization that should only happen on first run.
59
59
// !
60
+ // ! A secondary function of this flag, which applies to descriptor wallets
61
+ // ! only, is to serve as an ongoing indication that descriptors in the
62
+ // ! wallet should be created manually, and that the wallet should not
63
+ // ! generate automatically generate new descriptors if it is later
64
+ // ! encrypted. To support this behavior, descriptor wallets unlike legacy
65
+ // ! wallets do not automatically unset the BLANK flag when things are
66
+ // ! imported.
67
+ // !
60
68
// ! This flag is also a mandatory flag to prevent previous versions of
61
69
// ! bitcoin from opening the wallet, thinking it was newly created, and
62
70
// ! then improperly reinitializing it.
You can’t perform that action at this time.
0 commit comments