0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-05 10:17:30 -05:00
bitcoin-bitcoin-core/src/wallet
MeshCollider 6f4e0d1542
Merge #15226: Allow creating blank (empty) wallets (alternative)
7687f7873 [wallet] Support creating a blank wallet (Andrew Chow)

Pull request description:

  Alternative (kind of) to #14938

  This PR adds a `blank` parameter to the `createwallet` RPC to create a wallet that has no private keys initially. `sethdseed` can then be used to make a clean wallet with a custom seed. `encryptwallet` can also be used to make a wallet that is born encrypted.

  Instead of changing the version number as done in #14938, a wallet flag is used to indicate that the wallet should be blank. This flag is set at creation, and then unset when the wallet is no longer blank. A wallet becomes non-blank when a HD seed is set or anything is imported. The main change to create a blank wallet is primarily taken from #14938.

  Also with this, the term "blank wallet" is used instead of "empty wallet" to avoid confusion with wallets that have balance which would also be referred to as "empty".

  This is built on top of #15225 in order to fix GUI issues.

Tree-SHA512: 824d685e11ac2259a26b5ece99c67a7bda94a570cd921472c464243ee356b7734595ad35cc439b34357135df041ed9cba951e6edac194935c3a55a1dc4fcbdea
2019-02-11 08:08:33 +13:00
..
test Merge #15226: Allow creating blank (empty) wallets (alternative) 2019-02-11 08:08:33 +13:00
coincontrol.cpp scripted-diff: Move util files to separate directory. 2018-11-04 22:46:07 -08:00
coincontrol.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
coinselection.cpp Introduce a Shuffle for FastRandomContext and use it in wallet and coinselection 2018-12-12 14:22:12 -08:00
coinselection.h amount: Move CAmount CENT to unit test header 2018-09-17 14:34:56 -04:00
crypter.cpp [wallet] Support creating a blank wallet 2019-02-10 12:24:53 -05:00
crypter.h [tools] Add wallet inspection and modification tool 2019-01-30 16:26:52 -05:00
db.cpp Merge #15297: wallet: Releases dangling files on BerkeleyEnvironment::Close 2019-02-06 10:10:51 +13:00
db.h Merge #11911: Free BerkeleyEnvironment instances when not in use 2019-01-31 18:05:24 +01:00
feebumper.cpp Pass chain locked variables where needed 2018-11-06 11:44:40 -04:00
feebumper.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
fees.cpp scripted-diff: Move util files to separate directory. 2018-11-04 22:46:07 -08:00
fees.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
init.cpp Move maxTxFee initialization to init.cpp 2019-02-08 07:06:44 -07:00
rpcdump.cpp Merge #15365: wallet: Add lock annotation for mapAddressBook 2019-02-08 10:36:02 -05:00
rpcwallet.cpp Merge #15226: Allow creating blank (empty) wallets (alternative) 2019-02-11 08:08:33 +13:00
rpcwallet.h Simplify arguments to SignPSBTInput 2018-11-01 12:11:24 -07:00
wallet.cpp Merge #15226: Allow creating blank (empty) wallets (alternative) 2019-02-11 08:08:33 +13:00
wallet.h Merge #15226: Allow creating blank (empty) wallets (alternative) 2019-02-11 08:08:33 +13:00
walletdb.cpp Use C++11 default member initializers 2019-01-05 16:16:37 +01:00
walletdb.h [wallet] Kill accounts 2018-08-30 16:08:42 +02:00
wallettool.cpp wallet: Add lock annotation for mapAddressBook 2019-02-07 15:22:14 -05:00
wallettool.h [tools] Add wallet inspection and modification tool 2019-01-30 16:26:52 -05:00
walletutil.cpp Merge #14350: Add WalletLocation class 2018-11-05 13:17:03 +01:00
walletutil.h wallet: Add WalletLocation utility class 2018-10-25 11:53:17 +01:00