stars-labs / heco-chain

HECO-Chain client based on the go-ethereum fork
GNU Lesser General Public License v3.0
249 stars 141 forks source link

It will loss a large number of blocks when I reboot the geth #42

Closed ptr66 closed 3 years ago

ptr66 commented 3 years ago

Geth version: 1.1.1-stable OS & Version: Linux

Hi, It will loss a large number of blocks when I reboot the geth. Like this(I catch the state of syncing after reboot):

eth.syncing { currentBlock: 7881263, highestBlock: 7970698, knownStates: 190833495, pulledStates: 190833495, startingBlock: 7970681 }

I think the 'startingBlock' is right, it is the block number where the moment I kill the geth process, but the 'currentBlock' is wrong, and I find the problem also exist in old geth version. How can I repair this problem? Thank you!

wangsai-silence commented 3 years ago

Do not use kill -9. Use kill -15