Skip to content

commands: getpubkeys: clear error for an address not in the wallet - #11022

Open
devdavidejesus wants to merge 1 commit into
spesmilo:masterfrom
devdavidejesus:fix-getpubkeys
Open

devdavidejesus wants to merge 1 commit into
spesmilo:masterfrom
devdavidejesus:fix-getpubkeys

Conversation

@devdavidejesus

Copy link
Copy Markdown
Contributor

On master:

$ electrum --testnet getpubkeys tb1q7rwqj0mlkxmkelgxvyx4xkwkt9t8dnptvwkkgl   # address not in the wallet
TypeError: electrum.wallet.Standard_Wallet.derive_pubkeys() argument after * must be an iterable, not NoneType
$ electrum --testnet getpubkeys asdasd   # imported-address wallet
[]

This uses the same checks and messages as getprivatekeys (Invalid bitcoin address: ..., Address not in wallet: ...) and strips whitespace like it does.

getpubkeys raised a TypeError (derive_pubkeys() argument after * must be an
iterable, not NoneType) for an address not in the wallet, and imported
wallets silently returned [] even for invalid input. Use the same checks and
messages as getprivatekeys, and strip whitespace like it does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants