mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-27 07:55:39 +01:00
75b704df9dwallettool: Disallow creating new unnamed wallets (Ava Chow)5875a9c502wallet: disallow unnamed wallets in createwallet and restorewallet (Ava Chow)d30ad4a912wallet, rpc: Use HandleWalletError in createwallet (Ava Chow) Pull request description: We've been moving in the direction that all wallets must have a name. Therefore, we shouldn't allow creating new unnamed wallets. `createwallet`, `restorewallet`, and the wallet tool's `create` and `createfromdump` all now require the user to provide a non-empty wallet name when creating/restoring a wallet. The GUI is already enforcing this, but we were not enforcing it for RPCs or in the underlying `CreateWallet` and `RestoreWallet` functions. Wallet migration does still need to be able to restore unnamed wallets, so there is a new argument to `RestoreWallet` to explicitly allow that behavior for migration only. ACKs for top commit: rkrux: lgtm ACK75b704df9dpolespinasa: re ACK75b704df9dTree-SHA512: 8bde76d0b091e9276788c69412934af3426da2a7a69a00f94072d36c1a075cd41744ecdd5fef2b72870c1351b76aae061f124f716bb23f4839be20c464fc5ebd