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 has always been equal to false,. I used node to run the above code, but it never returned a value, and 4564564564 could not be printed. How can I make eth.syncing=true? thank you guys
.