Skip to content

Commit

Permalink
recover sync
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-li-hua committed Aug 11, 2021
1 parent cda90cc commit db25e9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ptn/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ func (pm *ProtocolManager) synchronize(peer *peer, assetId modules.AssetId, sync
atomic.StoreUint32(&pm.acceptTxs, 1) // Mark initial sync done
log.Info("ptn sync complete")

//cunit := pm.dag.GetCurrentUnit(assetId)
cunit := pm.dag.CurrentUnit(assetId)
cunit := pm.dag.GetCurrentUnit(assetId)
if cunit != nil && cunit.UnitHeader.GetNumber().Index > 0 {
go pm.BroadcastUnit(cunit, false)
//Notice light protocol to sync corsheader
Expand Down

0 comments on commit db25e9c

Please sign in to comment.