There is no return value for web3.eth.isSyncin, and the geth client does not prompt for eth_syncing.

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

.

Nov.29,2021

that means you are not in the Synchronize state. When you are in Synchronize, it is like this:

Menu