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

@ -32,13 +32,13 @@ import (
// "header": {
// "app_hash": "",
// "chain_id": "test-chain-6UTNIN",
// "height": 10,
// "height": "10",
// "time": "2017-05-29T15:05:53.877Z",
// "num_txs": 0,
// "num_txs": "0",
// "last_block_id": {
// "parts": {
// "hash": "3C78F00658E06744A88F24FF97A0A5011139F34A",
// "total": 1
// "total": "1"
// },
// "hash": "F70588DAB36BDA5A953D548A16F7D48C6C2DFD78"
// },
@ -49,13 +49,13 @@ import (
// "block_id": {
// "parts": {
// "hash": "277A4DBEF91483A18B85F2F5677ABF9694DFA40F",
// "total": 1
// "total": "1"
// },
// "hash": "96B1D2F2D201BA4BC383EB8224139DB1294944E5"
// }
// }
// ],
// "last_height": 5493
// "last_height": "5493"
// },
// "id": "",
// "jsonrpc": "2.0"
@ -143,21 +143,21 @@ func filterMinMax(height, min, max, limit int64) (int64, int64, error) {
// "block_id": {
// "parts": {
// "hash": "3C78F00658E06744A88F24FF97A0A5011139F34A",
// "total": 1
// "total": "1"
// },
// "hash": "F70588DAB36BDA5A953D548A16F7D48C6C2DFD78"
// },
// "type": 2,
// "round": 0,
// "height": 9,
// "validator_index": 0,
// "type": "2",
// "round": "0",
// "height": "9",
// "validator_index": "0",
// "validator_address": "E89A51D60F68385E09E716D353373B11F8FACD62"
// }
// ],
// "blockID": {
// "parts": {
// "hash": "3C78F00658E06744A88F24FF97A0A5011139F34A",
// "total": 1
// "total": "1"
// },
// "hash": "F70588DAB36BDA5A953D548A16F7D48C6C2DFD78"
// }
@ -168,13 +168,13 @@ func filterMinMax(height, min, max, limit int64) (int64, int64, error) {
// "header": {
// "app_hash": "",
// "chain_id": "test-chain-6UTNIN",
// "height": 10,
// "height": "10",
// "time": "2017-05-29T15:05:53.877Z",
// "num_txs": 0,
// "num_txs": "0",
// "last_block_id": {
// "parts": {
// "hash": "3C78F00658E06744A88F24FF97A0A5011139F34A",
// "total": 1
// "total": "1"
// },
// "hash": "F70588DAB36BDA5A953D548A16F7D48C6C2DFD78"
// },
@ -187,13 +187,13 @@ func filterMinMax(height, min, max, limit int64) (int64, int64, error) {
// "header": {
// "app_hash": "",
// "chain_id": "test-chain-6UTNIN",
// "height": 10,
// "height": "10",
// "time": "2017-05-29T15:05:53.877Z",
// "num_txs": 0,
// "num_txs": "0",
// "last_block_id": {
// "parts": {
// "hash": "3C78F00658E06744A88F24FF97A0A5011139F34A",
// "total": 1
// "total": "1"
// },
// "hash": "F70588DAB36BDA5A953D548A16F7D48C6C2DFD78"
// },
@ -204,7 +204,7 @@ func filterMinMax(height, min, max, limit int64) (int64, int64, error) {
// "block_id": {
// "parts": {
// "hash": "277A4DBEF91483A18B85F2F5677ABF9694DFA40F",
// "total": 1
// "total": "1"
// },
// "hash": "96B1D2F2D201BA4BC383EB8224139DB1294944E5"
// }
@ -255,21 +255,21 @@ func Block(heightPtr *int64) (*ctypes.ResultBlock, error) {
// "block_id": {
// "parts": {
// "hash": "9E37CBF266BC044A779E09D81C456E653B89E006",
// "total": 1
// "total": "1"
// },
// "hash": "CC6E861E31CA4334E9888381B4A9137D1458AB6A"
// },
// "type": 2,
// "round": 0,
// "height": 11,
// "validator_index": 0,
// "type": "2",
// "round": "0",
// "height": "11",
// "validator_index": "0",
// "validator_address": "E89A51D60F68385E09E716D353373B11F8FACD62"
// }
// ],
// "blockID": {
// "parts": {
// "hash": "9E37CBF266BC044A779E09D81C456E653B89E006",
// "total": 1
// "total": "1"
// },
// "hash": "CC6E861E31CA4334E9888381B4A9137D1458AB6A"
// }
@ -277,13 +277,13 @@ func Block(heightPtr *int64) (*ctypes.ResultBlock, error) {
// "header": {
// "app_hash": "",
// "chain_id": "test-chain-6UTNIN",
// "height": 11,
// "height": "11",
// "time": "2017-05-29T15:05:54.893Z",
// "num_txs": 0,
// "num_txs": "0",
// "last_block_id": {
// "parts": {
// "hash": "277A4DBEF91483A18B85F2F5677ABF9694DFA40F",
// "total": 1
// "total": "1"
// },
// "hash": "96B1D2F2D201BA4BC383EB8224139DB1294944E5"
// },
@ -337,14 +337,14 @@ func Commit(heightPtr *int64) (*ctypes.ResultCommit, error) {
//
// ```json
// {
// "height": 10,
// "height": "10",
// "results": [
// {
// "code": 0,
// "code": "0",
// "data": "CAFE00F00D"
// },
// {
// "code": 102,
// "code": "102",
// "data": ""
// }
// ]