mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[NOD-1059] Always call sm.restartSyncIfNeeded() when getting selectedTip message (#766)
This commit is contained in:
parent
dc643c2d76
commit
bc0227b49b
@ -940,9 +940,6 @@ func (sm *SyncManager) handleSelectedTipMsg(msg *selectedTipMsg) {
|
||||
return
|
||||
}
|
||||
state.peerShouldSendSelectedTip = false
|
||||
if selectedTipHash.IsEqual(peer.SelectedTipHash()) {
|
||||
return
|
||||
}
|
||||
peer.SetSelectedTipHash(selectedTipHash)
|
||||
sm.restartSyncIfNeeded()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user