Skip to content

Commit c2fbdca

Browse files
committed
Add BECH32_INVALID_VERSION test
1 parent b142f79 commit c2fbdca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/rpc_invalid_address_message.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def test_validateaddress(self):
5757
assert info['isvalid']
5858
assert 'error' not in info
5959

60+
info = node.validateaddress(BECH32_INVALID_VERSION)
61+
assert not info['isvalid']
62+
assert_equal(info['error'], 'Invalid Bech32 address witness version')
63+
6064
# Base58
6165
info = node.validateaddress(BASE58_INVALID_PREFIX)
6266
assert not info['isvalid']

0 commit comments

Comments
 (0)