3 Commits

Author SHA1 Message Date
jholdstock
31a2726578 client: Add tests for error handling.
The tests are to ensure that vspd errors are correctly wrapped as types.ErrorResponse, and non-vspd errors contain adequate information for debugging.

A small change in the client code itself was required to satisfy these conditions.
2023-02-17 20:51:48 +00:00
jholdstock
36505b529c client: Remove constructor.
The constructor contained no important logic and removing it makes the upcoming test code slightly more clean/convenient.
2023-02-17 20:51:48 +00:00
Jamie Holdstock
4acd57efbc
Add client module (#359)
* Add vspd client from dcrwallet.

* client: Extract and export ValidateServerSignature

* client: Add helper funcs.

* client: Add trace logging.

* client: Use existing error types.

* Add comments to explain error handling logic.
2022-11-28 11:16:00 -05:00