From 80595e4dd5fde9c772f6d979978aeb03f1d706c2 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Sat, 7 Dec 2019 19:16:17 +0100 Subject: [PATCH] remove debug prints --- chain/sync_manager.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/chain/sync_manager.go b/chain/sync_manager.go index 6a96c6886..0fdcf32de 100644 --- a/chain/sync_manager.go +++ b/chain/sync_manager.go @@ -271,7 +271,6 @@ func (sm *SyncManager) syncScheduler() { } func (sm *SyncManager) scheduleIncoming(ts *types.TipSet) { - log.Warn("Incoming tipset! ", ts.Cids(), ts.Height()) var relatedToActiveSync bool for _, acts := range sm.activeSyncs { if ts.Equals(acts) { @@ -280,20 +279,17 @@ func (sm *SyncManager) scheduleIncoming(ts *types.TipSet) { if types.CidArrsEqual(ts.Parents(), acts.Cids()) || types.CidArrsEqual(ts.Parents(), acts.Parents()) { // sync this next, after that sync process finishes - log.Warn("mark 1") relatedToActiveSync = true } } if !relatedToActiveSync && sm.activeSyncTips.RelatedToAny(ts) { - log.Warn("mark 2") relatedToActiveSync = true } // if this is related to an active sync process, immediately bucket it // we don't want to start a parallel sync process that duplicates work if relatedToActiveSync { - log.Warn("related to active sync") sm.activeSyncTips.Insert(ts) return } @@ -311,7 +307,6 @@ func (sm *SyncManager) scheduleIncoming(ts *types.TipSet) { } func (sm *SyncManager) scheduleProcessResult(res *syncResult) { - log.Warn("sync result! ", res.ts.Key()) delete(sm.activeSyncs, res.ts.Key()) relbucket := sm.activeSyncTips.PopRelated(res.ts) if relbucket != nil { @@ -328,8 +323,6 @@ func (sm *SyncManager) scheduleProcessResult(res *syncResult) { // have come in since. The question is, should we try to // sync these? or just drop them? } - } else { - log.Warn("no related bucket!") } }