Open daragao opened 7 years ago
Yep, I can confirm this issue!
i also got same problem when i debug i found mainCtrl load three times - 1- https://github.com/carsenk/explorer/blob/f4bc04beb07c7e62f75ab86284c80d432bca6671/app/app.js#L30 2- https://github.com/carsenk/explorer/blob/f4bc04beb07c7e62f75ab86284c80d432bca6671/app/index.html#L35 3- https://github.com/carsenk/explorer/blob/f4bc04beb07c7e62f75ab86284c80d432bca6671/app/views/main.html#L4
Please clone from https://github.com/sthnaqvi/ethereum-blockchain-explorer fixed this issue. Thanks
The main controller is being called multiple times: https://github.com/carsenk/explorer/blob/master/app/scripts/controllers/mainController.js#L4
This was not a problem when running locally geth and the server, but when I run them on different machines, there
web3.eth.filter()
is way to fast asking for updates and makes the frontend be sluggish.Don't know if I messed something up, our if happens to anyone else, but it seems to be a mixture from multiple calls to the
mainCtrl
time the amounts of updatesweb3.eth.filter()
does. Working on a simplification of this problem, unless it doesn't happen to anyone else