diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2019-08-04 17:56:39 +0200 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2021-02-23 14:34:31 +0100 |
commit | 259f52cc33817a00b91ec9c7d078c07b88db7ab4 (patch) | |
tree | 3ac35151c7e43f0b2ed2d4a39b0138de23ea6e42 /test/functional/wallet_signer.py | |
parent | 2655197e1c2dea9536c32afe1482ced4a1f481e9 (diff) |
test: external_signer wallet flag is immutable
Diffstat (limited to 'test/functional/wallet_signer.py')
-rwxr-xr-x | test/functional/wallet_signer.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/wallet_signer.py b/test/functional/wallet_signer.py index 10795758e9..d46b3899cc 100755 --- a/test/functional/wallet_signer.py +++ b/test/functional/wallet_signer.py @@ -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() |