1

I start my geth with --syncmode "fast" but I get this warning:

WARN [01-21|14:47:59.148] Switch sync mode from fast sync to full sync 

And my geth will start with full sync mode with this warning. Any solution for this?

OS version: CentOS Linux 7

Full command:

$ go-ethereum/build/bin/geth --syncmode "fast" --rpc --rpcapi db,eth,net,web3 --cache=16384 --rpcport 8545 --rpcaddr 0.0.0.0
2
  • Is your node already synced, or close to synced? Jan 21 '20 at 6:56
  • Still syncing, block number 9299098 now Jan 21 '20 at 6:59
2

A fast sync will switch to a full sync mode as it reaches the chain tip, once enough of the state trie has been synced in fast mode.

Going forward from that time, it will sync in full mode and download and evaluate each block vs. pulling just the state trie changes as in fast mode.

Your node is quite close to the chain tip, and has likely passed the point for which it was aiming in its fast sync - it is expected behaviour.

5
  • 1
    Thanks for you answer. One more question here, can I run light mode from 0 block then switch to full mode when my node is close to the chain tip ? Jan 21 '20 at 7:23
  • 2
    If you run as a light node, you won't have the information to run a full node - if you switch to a full node, it will start syncing from scratch (or from the last full block you have, in case you previously ran a fast or full sync completely at some point before switching to the light mode) Jan 21 '20 at 7:29
  • 1
    I'm 10 months behind, how can I get it to stay on fast sync?
    – CQM
    Jan 9 at 4:31
  • 1
    Did you try --syncmode fast ? Apr 14 at 0:17
  • 1
    question remains why this is logged as warning rather then info.
    – omni
    Apr 26 at 8:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.