Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btc: with dcrd's rpcclient, errors are dcrjson.RPCError
With both client and server btc asset backends using dcrd's rpcclient, the error type from all methods including RawRequest would be dcrjson.RPCError not btcjson.RPCError. The numeric codes will still pertain the btcjson constants, even though the dcrjson.RPCError.Code field is of type dcrjson.RPCErrorCode. Thus, error matching first interprets the error as a dcrjson.RPCError, and then compares the int representation of Code to the expected int code form btcjson.
- Loading branch information
Showing
5 changed files
with
34 additions
and
18 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
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