mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-12 06:09:08 +00:00
add debug log
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
b5f9fe087f
commit
b92803ebff
1 changed files with 1 additions and 0 deletions
|
|
@ -666,6 +666,7 @@ func (d *Downloader) Cancel() {
|
|||
|
||||
// ResetSkeleton terminates the skeleton syncer and reinitializes it.
|
||||
func (d *Downloader) ResetSkeleton() {
|
||||
log.Debug("Resetting skeleton syncer due to chain rewind")
|
||||
d.skeleton.Terminate()
|
||||
rawdb.DeleteSkeletonSyncStatus(d.stateDB)
|
||||
d.skeleton = newSkeleton(d.stateDB, d.peers, d.dropPeer, newBeaconBackfiller(d, d.success))
|
||||
|
|
|
|||
Loading…
Reference in a new issue