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/test
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
..
coinselector_tests.cpp Pass chain and client variables where needed 2018-11-06 11:44:40 -04:00
db_tests.cpp Tests: add unit tests for GetWalletEnv 2018-11-26 12:20:35 -04:00
init_test_fixture.cpp Remove direct node->wallet calls in init.cpp 2018-11-06 11:44:40 -04:00
init_test_fixture.h Remove direct node->wallet calls in init.cpp 2018-11-06 11:44:40 -04:00
init_tests.cpp Remove direct node->wallet calls in init.cpp 2018-11-06 11:44:40 -04:00
psbt_wallet_tests.cpp Merge #14588: Refactor PSBT signing logic to enforce invariant and fix signing bug 2018-11-09 19:43:09 -08:00
wallet_crypto_tests.cpp scripted-diff: Move util files to separate directory. 2018-11-04 22:46:07 -08:00
wallet_test_fixture.cpp Pass chain and client variables where needed 2018-11-06 11:44:40 -04:00
wallet_test_fixture.h Pass chain and client variables where needed 2018-11-06 11:44:40 -04:00
wallet_tests.cpp Merge #15226: Allow creating blank (empty) wallets (alternative) 2019-02-11 08:08:33 +13:00