You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying web3.eth.isSyncing(), a function which gives you callbacks when the node start and stops syncing i found an issue when using it as follows:
web3.eth.isSyncing(function(error,sync){if(!error){if(sync===true){// stop all activityweb3.reset(true);// <--- this seems to crash it}elseif(sync){// show sync info, stop app calls etcconsole.log(sync.highestBlock);}else{// regain app operation}}});
web3.eth.isSyncing(function(error,sync){if(!error){if(sync===true){// stop all activityconsole.log('start syncing');}elseif(sync){// show sync info, stop app calls etcconsole.log(sync.currentBlock);}else{// regain app operationconsole.log('stop syncing');}}});
@bas-vk could this have to do with the IPC? @zsfelfoldi could this have to do with your implementation of the setInterval, as web3 is polling under the hood using setInterval?
The text was updated successfully, but these errors were encountered:
While trying
web3.eth.isSyncing()
, a function which gives you callbacks when the node start and stops syncing i found an issue when using it as follows:This will crash the go node with the following:
see: https://gist.github.com/frozeman/d4df07d674150bddec8e
If you call it as follows, no problem appear:
@bas-vk could this have to do with the IPC?
@zsfelfoldi could this have to do with your implementation of the
setInterval
, as web3 is polling under the hood using setInterval?The text was updated successfully, but these errors were encountered: