Miscellaneous external signer changes #21666
pull fanquake wants to merge 7 commits into bitcoin:master from fanquake:external_signer_followups changing 8 files +49 −55-
fanquake commented at 1:01 pm on April 13, 2021: memberThese are a few followups after #21467.
-
refactor: move all signer code inside ENABLE_EXTERNAL_SIGNER #ifdefs 54569cc6d6
-
refactor: add missing includes to external signer code f4652bf125
-
refactor: unify external wallet runtime errors
Rather than 3 different messages that are confusing / leak implementation details, use a single message, that is similar to other wallet related messages. i.e: "Compiled without sqlite support (required for descriptor wallets)".
-
external_signer: remove ignore_errors from Enumerate()
This is undocumented and unused.
-
wallet: remove CWallet::GetExternalSigner() aaa4e5a45b
-
external_signer: use const where appropriate 9e0b199b97
-
external_signer: remove ExternalSignerException
It's not clear why this need it's own exception class, as opposed to just throwing std::runtime_error().
-
fanquake requested review from Sjors on Apr 13, 2021
-
fanquake requested review from instagibbs on Apr 13, 2021
-
DrahtBot added the label RPC/REST/ZMQ on Apr 13, 2021
-
DrahtBot added the label Wallet on Apr 13, 2021
-
Sjors commented at 7:37 pm on April 13, 2021: member
tACK c8f469c6d50a8db6d92f0aed47a5d1cc82f30f7f
Tested with a locally rebased https://github.com/bitcoin-core/gui/pull/4/files (with minimal changes).
06a0673351282fff1673f3679a7cad9a7faaf987 was added so that the GUI doesn’t throw an error in the create wallet menu if HWI is configured and there’s a problem. But it looks like I’m not even using that. I’ll bring it back if I need it.
How did you find the includes that were needed for
add missing includes to external signer code
?With regards to c8f469c it may be useful to catch HWI specific errors in the GUI in order to present more actionable advise, but we can revert if needed. For now the GUI just throws rather useless “Can’t list signers” / “Sign failed” / “Can’t display address” messages anyway.
-
instagibbs commented at 10:48 pm on April 13, 2021: member
utACK https://github.com/bitcoin/bitcoin/pull/21666/commits/c8f469c6d50a8db6d92f0aed47a5d1cc82f30f7f
straight forward cleanups
-
DrahtBot commented at 11:58 pm on April 13, 2021: member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #21206 (refactor: Make CWalletTx sync state type-safe by ryanofsky)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
-
fanquake commented at 1:36 am on April 14, 2021: member
How did you find the includes that were needed for add missing includes to external signer code?
Just by reading through the code and looking at
std::
usage.I agree that other code can be (re-)added if/when it’s actually used.
-
fanquake merged this on Apr 14, 2021
-
fanquake closed this on Apr 14, 2021
-
fanquake deleted the branch on Apr 14, 2021
-
sidhujag referenced this in commit 0a5d8a5a86 on Apr 14, 2021
-
DrahtBot locked this on Aug 18, 2022
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: 2024-12-18 12:12 UTC
More mirrored repositories can be found on mirror.b10c.me