rpc/core: ints are strings in responses, closes #1896

This commit is contained in:
zramsay
2018-09-25 17:15:08 -04:00
committed by Anton Kaliaev
parent 110b07fb3f
commit cf8b42d813
7 changed files with 83 additions and 83 deletions

View File

@ -28,8 +28,8 @@ import (
// "result": {
// "validators": [
// {
// "accum": 0,
// "voting_power": 10,
// "accum": "0",
// "voting_power": "10",
// "pub_key": {
// "data": "68DFDA7E50F82946E7E8546BED37944A422CD1B831E70DF66BA3B8430593944D",
// "type": "ed25519"
@ -37,7 +37,7 @@ import (
// "address": "E89A51D60F68385E09E716D353373B11F8FACD62"
// }
// ],
// "block_height": 5241
// "block_height": "5241"
// },
// "id": "",
// "jsonrpc": "2.0"
@ -79,9 +79,9 @@ func Validators(heightPtr *int64) (*ctypes.ResultValidators, error) {
// "id": "",
// "result": {
// "round_state": {
// "height": 7185,
// "round": 0,
// "step": 1,
// "height": "7185",
// "round": "0",
// "step": "1",
// "start_time": "2018-05-12T13:57:28.440293621-07:00",
// "commit_time": "2018-05-12T13:57:27.440293621-07:00",
// "validators": {
@ -92,8 +92,8 @@ func Validators(heightPtr *int64) (*ctypes.ResultValidators, error) {
// "type": "tendermint/PubKeyEd25519",
// "value": "SBctdhRBcXtBgdI/8a/alTsUhGXqGs9k5ylV1u5iKHg="
// },
// "voting_power": 10,
// "accum": 0
// "voting_power": "10",
// "accum": "0"
// }
// ],
// "proposer": {
@ -102,27 +102,27 @@ func Validators(heightPtr *int64) (*ctypes.ResultValidators, error) {
// "type": "tendermint/PubKeyEd25519",
// "value": "SBctdhRBcXtBgdI/8a/alTsUhGXqGs9k5ylV1u5iKHg="
// },
// "voting_power": 10,
// "accum": 0
// "voting_power": "10",
// "accum": "0"
// }
// },
// "proposal": null,
// "proposal_block": null,
// "proposal_block_parts": null,
// "locked_round": 0,
// "locked_round": "0",
// "locked_block": null,
// "locked_block_parts": null,
// "valid_round": 0,
// "valid_round": "0",
// "valid_block": null,
// "valid_block_parts": null,
// "votes": [
// {
// "round": 0,
// "round": "0",
// "prevotes": "_",
// "precommits": "_"
// }
// ],
// "commit_round": -1,
// "commit_round": "-1",
// "last_commit": {
// "votes": [
// "Vote{0:B5B3D40BE539 7184/00/2(Precommit) 14F946FA7EF0 /702B1B1A602A.../ @ 2018-05-12T20:57:27.342Z}"
@ -138,8 +138,8 @@ func Validators(heightPtr *int64) (*ctypes.ResultValidators, error) {
// "type": "tendermint/PubKeyEd25519",
// "value": "SBctdhRBcXtBgdI/8a/alTsUhGXqGs9k5ylV1u5iKHg="
// },
// "voting_power": 10,
// "accum": 0
// "voting_power": "10",
// "accum": "0"
// }
// ],
// "proposer": {
@ -148,8 +148,8 @@ func Validators(heightPtr *int64) (*ctypes.ResultValidators, error) {
// "type": "tendermint/PubKeyEd25519",
// "value": "SBctdhRBcXtBgdI/8a/alTsUhGXqGs9k5ylV1u5iKHg="
// },
// "voting_power": 10,
// "accum": 0
// "voting_power": "10",
// "accum": "0"
// }
// }
// },
@ -158,30 +158,30 @@ func Validators(heightPtr *int64) (*ctypes.ResultValidators, error) {
// "node_address": "30ad1854af22506383c3f0e57fb3c7f90984c5e8@172.16.63.221:26656",
// "peer_state": {
// "round_state": {
// "height": 7185,
// "round": 0,
// "step": 1,
// "height": "7185",
// "round": "0",
// "step": "1",
// "start_time": "2018-05-12T13:57:27.438039872-07:00",
// "proposal": false,
// "proposal_block_parts_header": {
// "total": 0,
// "total": "0",
// "hash": ""
// },
// "proposal_block_parts": null,
// "proposal_pol_round": -1,
// "proposal_pol_round": "-1",
// "proposal_pol": "_",
// "prevotes": "_",
// "precommits": "_",
// "last_commit_round": 0,
// "last_commit_round": "0",
// "last_commit": "x",
// "catchup_commit_round": -1,
// "catchup_commit_round": "-1",
// "catchup_commit": "_"
// },
// "stats": {
// "last_vote_height": 7184,
// "votes": 255,
// "last_block_part_height": 7184,
// "block_parts": 255
// "last_vote_height": "7184",
// "votes": "255",
// "last_block_part_height": "7184",
// "block_parts": "255"
// }
// }
// }
@ -241,7 +241,7 @@ func DumpConsensusState() (*ctypes.ResultDumpConsensusState, error) {
// "valid_block_hash": "",
// "height_vote_set": [
// {
// "round": 0,
// "round": "0",
// "prevotes": [
// "nil-Vote"
// ],