mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
test: external_signer wallet flag is immutable
This commit is contained in:
parent
2655197e1c
commit
259f52cc33
1 changed files with 5 additions and 0 deletions
|
@ -86,5 +86,10 @@ class SignerTest(BitcoinTestFramework):
|
|||
assert_equal(result['signers'][0]["fingerprint"], "00000001")
|
||||
assert_equal(result['signers'][0]["name"], "trezor_t")
|
||||
|
||||
# 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_raises_rpc_error(-8, "Wallet flag is immutable: external_signer", not_hww.setwalletflag, "external_signer", True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
SignerTest().main()
|
||||
|
|
Loading…
Add table
Reference in a new issue