diff options
author | lsilva01 <lsilva01@protonmail.com> | 2021-09-08 18:05:09 -0300 |
---|---|---|
committer | lsilva01 <lsilva01@protonmail.com> | 2021-09-21 19:25:21 -0300 |
commit | c2fbdca54915e85ffafe1a88858d3c70c2b1afe8 (patch) | |
tree | eba2dc17eadbb2a4d528b9377a480e6422daed3b | |
parent | b142f79ddb91a44f29fcb2afb7f2edf3ca17e168 (diff) | |
download | bitcoin-c2fbdca54915e85ffafe1a88858d3c70c2b1afe8.tar.xz |
Add BECH32_INVALID_VERSION test
-rwxr-xr-x | test/functional/rpc_invalid_address_message.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/rpc_invalid_address_message.py b/test/functional/rpc_invalid_address_message.py index 4eb7c2d651..7ab5a5e90d 100755 --- a/test/functional/rpc_invalid_address_message.py +++ b/test/functional/rpc_invalid_address_message.py @@ -57,6 +57,10 @@ class InvalidAddressErrorMessageTest(BitcoinTestFramework): assert info['isvalid'] assert 'error' not in info + info = node.validateaddress(BECH32_INVALID_VERSION) + assert not info['isvalid'] + assert_equal(info['error'], 'Invalid Bech32 address witness version') + # Base58 info = node.validateaddress(BASE58_INVALID_PREFIX) assert not info['isvalid'] |