Tomas Tauber
b12488b5f1
Handling integer IDs in JSON-RPC requests -- fixes #2366 (#2811)
* Fixed accepting integer IDs in requests for Tendermint RPC server (#2366) * added a wrapper interface `jsonrpcid` that represents both string and int IDs in JSON-RPC requests/responses + custom JSON unmarshallers * changed client-side code in RPC that uses it * added extra tests for integer IDs * updated CHANGELOG_PENDING, as suggested by PR instructions * addressed PR comments * added table driven tests for request type marshalling/unmarshalling * expanded handler test to check IDs * changed pending changelog note * changed json rpc request/response unmarshalling to use empty interfaces and type switches on ID * some cleanup |
6 years ago | |
---|---|---|
.. | ||
client | Handling integer IDs in JSON-RPC requests -- fixes #2366 (#2811) | 6 years ago |
server | Handling integer IDs in JSON-RPC requests -- fixes #2366 (#2811) | 6 years ago |
test | Decouple StartHTTP{,AndTLS}Server from Listen() (#2791) | 6 years ago |
types | Handling integer IDs in JSON-RPC requests -- fixes #2366 (#2811) | 6 years ago |
doc.go | Decouple StartHTTP{,AndTLS}Server from Listen() (#2791) | 6 years ago |
rpc_test.go | small fixes to spec & http_server & Vagrantfile (#2859) | 6 years ago |