pmg/rpc: make freespace and height u64

when using a restricted port, freespace gives back u64's max value[1]:

	std::numeric_limits<uint64_t>::max()

[1]: ed506006d2/src/rpc/core_rpc_server.cpp (L511)

Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
This commit is contained in:
Ciro S. Costa 2021-08-03 17:12:08 -04:00
parent 42f30dc537
commit 0094b0481e

View file

@ -210,9 +210,9 @@ type GetInfoResult struct {
BusySyncing bool `json:"busy_syncing"`
CumulativeDifficulty int64 `json:"cumulative_difficulty"`
Difficulty int64 `json:"difficulty"`
FreeSpace int64 `json:"free_space"`
FreeSpace uint64 `json:"free_space"`
GreyPeerlistSize int `json:"grey_peerlist_size"`
Height int `json:"height"`
Height uint64 `json:"height"`
HeightWithoutBootstrap int `json:"height_without_bootstrap"`
IncomingConnectionsCount int `json:"incoming_connections_count"`
Mainnet bool `json:"mainnet"`