Closed chainhead closed 6 years ago
use this explorer already fixed it . https://github.com/sthnaqvi/explorer
You mean this https://github.com/sthnaqvi/explorer/commit/39eaebef947be90d5e099013e148059b27a7f329?diff=split ? Just curious to know, what is this fix? I am not an Angular developer ...
Why would
web3.eth.blockNumber
return a zero? Shouldgeth
be run for a certain duration before explorer can work? Inscripts/controllers/mainController.js
, the functionupdateStats()
fails ifweb3.eth.blockNumber
returns 0. I used a work-around such that theblockNum
used subsequently is always greater than equal to 0 and the-1
doesn't crash the application.