Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2955 from skubakdj/ethblocks-fix
Browse files Browse the repository at this point in the history
Node info breaks on slow IPC connection
  • Loading branch information
evertonfraga authored Oct 21, 2017
2 parents 25f5404 + ad87311 commit e597068
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions interface/client/appStart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ mistInit = function () {
console.info('Initialise Mist Interface');

EthBlocks.init();
const ethBlocksInterval = setInterval(() => {
if (_.isEmpty(EthBlocks.latest)) {
EthBlocks.init();
} else {
clearInterval(ethBlocksInterval);
}
}, 500);

Tabs.onceSynced.then(function () {
if (location.search.indexOf('reset-tabs') >= 0) {
Expand Down

0 comments on commit e597068

Please sign in to comment.