Sia
Sia copied to clipboard
Sia explorer return wrong result.
I run this command in my local machine:
curl -A "Sia-Agent" "localhost:9980/explorer/blocks/120000"
but return this"
` …… leave out ……
"blockid":"0000000000000000000000000000000000000000000000000000000000000000","difficulty":"0","estimatedhashrate":"0","height":0,"maturitytimestamp":0,"target":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"totalcoins":"0","minerpayoutcount":0,"transactioncount":0,"siacoininputcount":0,"siacoinoutputcount":0,"filecontractcount":0,"filecontractrevisioncount":0,"storageproofcount":0,"siafundinputcount":0,"siafundoutputcount":0,"minerfeecount":0,"arbitrarydatacount":0,"transactionsignaturecount":0,"activecontractcost":"0","activecontractcount":0,"activecontractsize":"0","totalcontractcost":"0","totalcontractsize":"0","totalrevisionvolume":"0"}`
It might be the same issue I reported on https://github.com/NebulousLabs/Sia/issues/2432 Certain crashes of siad makes new blocks indexed by the explorer to return 0 values after starting siad again.
As a workaround, if you have a backup of sia installation restore it. If not, delete the explorer module and start over with the indexing
is there any update regarding the issue?
From what we can tell, this happens if the consensus change internals of siad hiccup. If you delete the explorer database and let it resync, it should fix the issue.
And, I want to give a gentle reminder that no part of the explorer has been finalized - the api is considered unstable, and is likely to be overhauled at some point.