diff options
author | Kristaps Kaupe <kristaps@blogiem.lv> | 2022-02-10 03:23:47 +0200 |
---|---|---|
committer | Kristaps Kaupe <kristaps@blogiem.lv> | 2022-02-10 03:23:47 +0200 |
commit | b75f4c89ec4d33a3014ccd5151964881b5e0aa1c (patch) | |
tree | d82ec62162ddba1c662a392fc036e3ab0b0ed218 /test/functional/wallet_signer.py | |
parent | 8c0f02c69d50761c3a6d4dfb5d7cba43a00a55ae (diff) | |
download | bitcoin-b75f4c89ec4d33a3014ccd5151964881b5e0aa1c.tar.xz |
RPC: Return external_signer in getwalletinfo
Diffstat (limited to 'test/functional/wallet_signer.py')
-rwxr-xr-x | test/functional/wallet_signer.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/wallet_signer.py b/test/functional/wallet_signer.py index 9e2db517b6..423cfecdc0 100755 --- a/test/functional/wallet_signer.py +++ b/test/functional/wallet_signer.py @@ -72,10 +72,12 @@ class WalletSignerTest(BitcoinTestFramework): self.nodes[1].createwallet(wallet_name='hww', disable_private_keys=True, descriptors=True, external_signer=True) hww = self.nodes[1].get_wallet_rpc('hww') + assert_equal(hww.getwalletinfo()["external_signer"], True) # Flag can't be set afterwards (could be added later for non-blank descriptor based watch-only wallets) self.nodes[1].createwallet(wallet_name='not_hww', disable_private_keys=True, descriptors=True, external_signer=False) not_hww = self.nodes[1].get_wallet_rpc('not_hww') + assert_equal(not_hww.getwalletinfo()["external_signer"], False) assert_raises_rpc_error(-8, "Wallet flag is immutable: external_signer", not_hww.setwalletflag, "external_signer", True) # assert_raises_rpc_error(-4, "Multiple signers found, please specify which to use", wallet_name='not_hww', disable_private_keys=True, descriptors=True, external_signer=True) |