lsilva01
commented at 2:28 AM on October 25, 2021:
contributor
Code Review ACK04153bc
stratospher
commented at 1:42 PM on October 28, 2021:
contributor
Tested ACK04153bc on a non HD wallet. The warning is really helpful.
$ src/bitcoin-cli --testnet -rpcwallet=mynonHD newkeypool
error code: -4
error message:
Error: Cannot use newkeypool on non-HD wallets.
luke-jr changes_requested
luke-jr
commented at 4:52 PM on October 29, 2021:
member
Concept NACK. Users of non-HD wallets expect to make new backups regularly. No reason to deny them this RPC method...
meshcollider
commented at 8:42 PM on October 29, 2021:
contributor
@luke-jr can you provide a reason for its usefulness? It was only just added, so I can't imagine anyone relying on it...
luke-jr
commented at 11:08 PM on October 29, 2021:
member
Maybe I'm missing the point of it entirely? I'm just saying artificially blocking non-HD wallets from using it seems unreasonable. I can't think of a use case for this with a HD wallet (won't the new keypool just end up with the same keys?), but it seems useful for non-HD wallets to intentionally avoid new funds from being accessible with old (compromised?) backups.
meshcollider
commented at 4:40 AM on October 30, 2021:
contributor
HD wallets will be restocked with entirely new keys. That's an interesting use-case, I mainly had in mind people who have upgraded non-HD to HD and want to clear out all their non-HD keys in one go. But I can just add some large warnings in the non-HD case.
In that case though @luke-jr why not just make a new wallet?
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:53 UTC