I use Geth 1.7.3 in Azure Ubuntu VM to test run mining.
First I sync with main network using:
geth --fast --cache=2048
After I run for 24 hours, the progress is still 4476201 / 4973527 (around 90% sync). Then I stop the sync and change to sync light mode:
geth --syncmode "light" --cache=2048
The sync completed in few minutes. Then, I start mining by:
geth --mine --minerthreads=8
The mining starts, but very soon, it displays the following messages:
INFO [01-26|02:45:44] Commit new mining work number=1 txs=0 uncles=0 elapsed=57.163ms
INFO [01-26|02:45:58] Upgrading chain index type=bloombits percentage=99
INFO [01-26|02:46:08] Finished upgrading chain index type=bloombits
INFO [01-26|02:46:34] Block synchronisation started
INFO [01-26|02:46:34] Mining aborted due to sync
INFO [01-26|02:46:46] Imported new block headers count=0 elapsed=10.641ms number=4457698 hash=8e53f3…0ffac5 ignored=192
Seems that the sync is incomplete, and sync starts at block 4457698 (I thought I have completed syncing already). I cross-verify with the eth.syncing
command in geth console
:
{
currentBlock: 4478249,
highestBlock: 4973527,
knownStates: 264144,
pulledStates: 261773,
startingBlock: 4457506
}
So, do I need to sync all over again? Since I'm not specifying sync mode in the mining command, does the Sync mode run in full mode now? How to check which mode the syncing is using?
Thanks in advance.