Roman Khimov
|
e32367a1c2
|
rpc/client: fix some comments
|
2020-04-30 22:59:19 +03:00 |
|
Roman Khimov
|
a49f2bc47c
|
client: remove Balancer getter/setter, make it an Option
Keep it internal to the client instance, it makes no sense exposing it to the
outside user.
|
2020-04-30 22:59:19 +03:00 |
|
Roman Khimov
|
00d6439eb2
|
client: make http.Client internal to the Client
Exposing it the outside users is strange, so incapsulate it completely.
Fix DialTimeout setting along the way, handle negative timeouts as invalid.
|
2020-04-30 22:59:01 +03:00 |
|
Roman Khimov
|
e41d434a49
|
*: move all packages from CityOfZion to nspcc-dev
|
2020-03-03 17:21:42 +03:00 |
|
Roman Khimov
|
3fa9de764b
|
rpc/client: only return the Result from calls, handle Error internally
Adjust structures accordingly and throw away most of them, they're useless.
|
2020-02-21 15:23:11 +03:00 |
|
Roman Khimov
|
28a26d2cae
|
rpc/client: look into data first, then HTTP error code
In case of error our own server responds with an HTTP error and proper
JSON-RPC error in the body, so look there first as it has more specific data.
|
2020-02-21 15:12:04 +03:00 |
|
Evgenii Stratonikov
|
d24c6d1d9e
|
rpc: move client-related code to a separate package
This includes Client struct with RPC methods and
BalanceGetter implementation with NeoSCAN.
|
2020-02-21 15:12:04 +03:00 |
|