Sia icon indicating copy to clipboard operation
Sia copied to clipboard

Sia explorer return wrong result.

Open TerminusBot opened this issue 6 years ago • 3 comments

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"}`

TerminusBot avatar Oct 24 '17 06:10 TerminusBot

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

hakkane84 avatar Oct 28 '17 15:10 hakkane84

is there any update regarding the issue?

magmel48 avatar Mar 28 '18 11:03 magmel48

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.

DavidVorick avatar Mar 28 '18 14:03 DavidVorick