web3.eth.isSyncing(function(error, sync){
console.log(4564564564)
if(!error) {
if(sync === true) {
web3.reset(true);
} else if(sync) {
console.log(sync.currentBlock);
} else {
}
}
});
console.log(eth.syncing)
eth.syncing 一直等于false,我用node运行上面的代码,一直没返回值,4564564564也打印不出来,请问如何让eth.syncing=true呢,谢谢大佬们
那说明没处于同步状态,同步的时候是这样的: