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呢,谢谢大佬们
添加回答
举报
0/150
提交
取消