Open timsahabutdinov opened 4 years ago
It looks like the same problem as #1622 and probably #1652
@timsahabutdinov is it still the case with the latest release?
yes, the problem is not solved
@rinor
# curl -s http://127.0.0.1:3101/api/v0/node/stats
{"version":"jormungandr 0.8.9-30d20d2","state":"Running","blockRecvCnt":393,"lastBlockContentSize":315,"lastBlockDate":"47.42668","lastBlockFees":800000,"lastBlockHash":"cd483a83e0a268a40fffa16742878f9287037f3b491890d3bb5c8fd95d8d6f86","lastBlockHeight":"147003","lastBlockSum":54999058119,"lastBlockTime":"2020-01-30T18:55:53+00:00","lastBlockTx":1,"lastReceivedBlockTime":"2020-01-30T18:55:54+00:00","peerAvailableCnt":5312,"peerQuarantinedCnt":42320,"peerUnreachableCnt":785,"txRecvCnt":376,"uptime":8501}
# curl -S http://127.0.0.1:3101/explorer/graphql -H 'content-type: application/json' --data '{"query": "{ status { latestBlock { chainLength id previousBlock { id } } }}"}'
{"data":{"status":{"latestBlock":{"chainLength":"146848","id":"98b818c3310c07cd1d6c2ed1e40f02fd0b3941f2fbb03c16492f1cb3721c41f4","previousBlock":{"id":"4bb2bc3e14ac41c781b122bb0d54641ef8e6c0cc0fbceb9980f3412269fce462"}}}}}
When I get lastBlockHeight via rest api it shows correct data
but when I try to get info via explorer it shows wrong chainLength and latestBlockId