From c2fbdca54915e85ffafe1a88858d3c70c2b1afe8 Mon Sep 17 00:00:00 2001 From: lsilva01 Date: Wed, 8 Sep 2021 18:05:09 -0300 Subject: [PATCH] Add BECH32_INVALID_VERSION test --- test/functional/rpc_invalid_address_message.py | 4 ++++ 1 file changed, 4 insertions(+) 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']