refactor: use util::Result for GetExternalSigner()

This commit does not change behavior, except that the error message no longer contains the function name.
This commit is contained in:
Sjors Provoost
2025-06-05 11:32:23 +02:00
parent fd4399cb9c
commit 8ba2f9b7c8
4 changed files with 19 additions and 13 deletions

View File

@@ -243,7 +243,7 @@ class WalletSignerTest(BitcoinTestFramework):
self.log.debug(f"-signer={self.mock_multi_signers_path()}")
self.log.info('Test multiple external signers')
assert_raises_rpc_error(-1, "GetExternalSigner: More than one external signer found", self.nodes[1].createwallet, wallet_name='multi_hww', disable_private_keys=True, external_signer=True)
assert_raises_rpc_error(-1, "More than one external signer found", self.nodes[1].createwallet, wallet_name='multi_hww', disable_private_keys=True, external_signer=True)
if __name__ == '__main__':
WalletSignerTest(__file__).main()