7 Commits

Author SHA1 Message Date
jholdstock
0a38bd8152 multi: Replace interface{} with 'any' alias 2023-08-18 14:32:17 +01:00
Jamie Holdstock
a5003c046b
client: Automatic fee payment from dcrwallet (#382) 2023-05-30 11:50:23 +01:00
jholdstock
0c06145d67 client: Use types 2.0.0 2023-03-16 16:14:59 +00:00
jholdstock
be79a8e279 client: Hard-code validate func.
The client supported overriding the default server signature validation func. This was originally added to facilitate testing, but at the moment only serves to make using the client more clunky and error prone.
2023-03-15 10:46:13 +00:00
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