diff options
author | Samuel Dobson <dobsonsa68@gmail.com> | 2021-11-23 12:17:34 +1300 |
---|---|---|
committer | Samuel Dobson <dobsonsa68@gmail.com> | 2021-11-23 15:48:59 +1300 |
commit | c8b9a224e70f70ccc638b2c4200a505cdf024efd (patch) | |
tree | 158d0c3d3b9342ca4e50a1cb9f95f3bfe20cd440 /test/functional/rpc_invalid_address_message.py | |
parent | 92f0cafdca11a9463b6f04229c1c47805c97c1b5 (diff) | |
download | bitcoin-c8b9a224e70f70ccc638b2c4200a505cdf024efd.tar.xz |
Report encoding type in bech32 error message
Diffstat (limited to 'test/functional/rpc_invalid_address_message.py')
-rwxr-xr-x | test/functional/rpc_invalid_address_message.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/rpc_invalid_address_message.py b/test/functional/rpc_invalid_address_message.py index 1aaeddbf00..fcc49d0a75 100755 --- a/test/functional/rpc_invalid_address_message.py +++ b/test/functional/rpc_invalid_address_message.py @@ -67,13 +67,13 @@ class InvalidAddressErrorMessageTest(BitcoinTestFramework): self.check_invalid(BECH32_INVALID_VERSION, 'Invalid Bech32 address witness version') self.check_invalid(BECH32_INVALID_V0_SIZE, 'Invalid Bech32 v0 address data size') self.check_invalid(BECH32_TOO_LONG, 'Bech32 string too long', list(range(90, 108))) - self.check_invalid(BECH32_ONE_ERROR, 'Invalid checksum', [9]) - self.check_invalid(BECH32_TWO_ERRORS, 'Invalid checksum', [22, 43]) - self.check_invalid(BECH32_ONE_ERROR_CAPITALS, 'Invalid checksum', [38]) + self.check_invalid(BECH32_ONE_ERROR, 'Invalid Bech32 checksum', [9]) + self.check_invalid(BECH32_TWO_ERRORS, 'Invalid Bech32 checksum', [22, 43]) + self.check_invalid(BECH32_ONE_ERROR_CAPITALS, 'Invalid Bech32 checksum', [38]) self.check_invalid(BECH32_NO_SEPARATOR, 'Missing separator') self.check_invalid(BECH32_INVALID_CHAR, 'Invalid Base 32 character', [8]) - self.check_invalid(BECH32_MULTISIG_TWO_ERRORS, 'Invalid checksum', [19, 30]) - self.check_invalid(BECH32_WRONG_VERSION, 'Invalid checksum', [5]) + self.check_invalid(BECH32_MULTISIG_TWO_ERRORS, 'Invalid Bech32 checksum', [19, 30]) + self.check_invalid(BECH32_WRONG_VERSION, 'Invalid Bech32 checksum', [5]) # Valid Bech32 self.check_valid(BECH32_VALID) |