-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make validateaddress take address_type and return error in all cases
- Loading branch information
1 parent
ac7c0e9
commit 09ea579
Showing
5 changed files
with
124 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
Updated RPCs | ||
------------ | ||
|
||
- The `validateaddress` RPC now returns an `error` message and `error_index` in | ||
the case of an invalid address, diagnosing the error as if it was a Bech32 address. | ||
- The `validateaddress` RPC now accepts an additional `address_type` parameter. If provided, | ||
an invalid address will additionally return an `error` message with a reason for the invalidity. | ||
If `address_type` is `bech32`, an `error_index` will also be returned, indicating the position | ||
of an error in the address. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters