@@ -61,7 +61,7 @@ def check_invalid(self, addr, error_str, error_locations=None):
61
61
def test_validateaddress (self ):
62
62
# Invalid Bech32
63
63
self .check_invalid (BECH32_INVALID_SIZE , 'Invalid Bech32 address data size' )
64
- self .check_invalid (BECH32_INVALID_PREFIX , 'Invalid HRP or Base58 character in address ' )
64
+ self .check_invalid (BECH32_INVALID_PREFIX , 'Not a valid Bech32 or Base58 encoding ' )
65
65
self .check_invalid (BECH32_INVALID_BECH32 , 'Version 1+ witness address must use Bech32m checksum' )
66
66
self .check_invalid (BECH32_INVALID_BECH32M , 'Version 0 witness address must use Bech32 checksum' )
67
67
self .check_invalid (BECH32_INVALID_VERSION , 'Invalid Bech32 address witness version' )
@@ -89,19 +89,19 @@ def test_validateaddress(self):
89
89
self .check_valid (BASE58_VALID )
90
90
91
91
# Invalid address format
92
- self .check_invalid (INVALID_ADDRESS , 'Invalid HRP or Base58 character in address ' )
93
- self .check_invalid (INVALID_ADDRESS_2 , 'Invalid HRP or Base58 character in address ' )
92
+ self .check_invalid (INVALID_ADDRESS , 'Not a valid Bech32 or Base58 encoding ' )
93
+ self .check_invalid (INVALID_ADDRESS_2 , 'Not a valid Bech32 or Base58 encoding ' )
94
94
95
95
def test_getaddressinfo (self ):
96
96
node = self .nodes [0 ]
97
97
98
98
assert_raises_rpc_error (- 5 , "Invalid Bech32 address data size" , node .getaddressinfo , BECH32_INVALID_SIZE )
99
99
100
- assert_raises_rpc_error (- 5 , "Invalid HRP or Base58 character in address " , node .getaddressinfo , BECH32_INVALID_PREFIX )
100
+ assert_raises_rpc_error (- 5 , "Not a valid Bech32 or Base58 encoding " , node .getaddressinfo , BECH32_INVALID_PREFIX )
101
101
102
102
assert_raises_rpc_error (- 5 , "Invalid prefix for Base58-encoded address" , node .getaddressinfo , BASE58_INVALID_PREFIX )
103
103
104
- assert_raises_rpc_error (- 5 , "Invalid HRP or Base58 character in address " , node .getaddressinfo , INVALID_ADDRESS )
104
+ assert_raises_rpc_error (- 5 , "Not a valid Bech32 or Base58 encoding " , node .getaddressinfo , INVALID_ADDRESS )
105
105
106
106
def run_test (self ):
107
107
self .test_validateaddress ()
0 commit comments