v0.20.0
This release has a behavior change in the RPC package. Previously, if the RPC returned success: false, error: <message>
, the err
returned from the RPC client functions was nil, and it was up to the caller to check the response for success: false
. This release checks for that automatically and returns a ChiaRPCError
error with the message from the RPC automatically. This should make it easier and more familiar to check for errors in RPC responses.
The response struct will still be returned in these cases, so any existing code checking for Success: false will still work, though it may not be reached if errors were checked before those lines.
What's Changed
- RPC Refactor by @cmmarslender in #182
Full Changelog: v0.19.0...v0.20.0