mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Add BECH32_INVALID_VERSION test
This commit is contained in:
parent
b142f79ddb
commit
c2fbdca549
1 changed files with 4 additions and 0 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue