From a06c2b15ef989d3d42f18432bead0db82b443ebc Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Sun, 8 Dec 2019 16:04:44 +0100 Subject: [PATCH] remove debug prints --- chain/sync_manager.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/chain/sync_manager.go b/chain/sync_manager.go index c5ec3c04b..4226902c5 100644 --- a/chain/sync_manager.go +++ b/chain/sync_manager.go @@ -2,7 +2,6 @@ package chain import ( "context" - "fmt" "sort" "sync" @@ -96,13 +95,11 @@ func (sm *SyncManager) SetPeerHead(ctx context.Context, p peer.ID, ts *types.Tip } sm.setBootstrapState(BSStateSelected) - fmt.Println("schedule bootstrap sync") sm.incomingTipSets <- target } log.Infof("sync bootstrap has %d peers", spc) return } - fmt.Println("sending off incoming tipset") sm.incomingTipSets <- ts } @@ -286,10 +283,8 @@ func (sm *SyncManager) syncScheduler() { } func (sm *SyncManager) scheduleIncoming(ts *types.TipSet) { - fmt.Println("INCOMING: ", ts.Height()) if sm.getBootstrapState() == BSStateSelected { sm.setBootstrapState(BSStateScheduled) - fmt.Println("start bootstrap sync") sm.syncTargets <- ts return } @@ -318,7 +313,6 @@ func (sm *SyncManager) scheduleIncoming(ts *types.TipSet) { } if sm.getBootstrapState() == BSStateScheduled { - fmt.Println("received new head while bootstrapping...") sm.syncQueue.Insert(ts) return } @@ -336,9 +330,7 @@ func (sm *SyncManager) scheduleIncoming(ts *types.TipSet) { } func (sm *SyncManager) scheduleProcessResult(res *syncResult) { - fmt.Println("result!") if res.success && sm.getBootstrapState() != BSStateComplete { - fmt.Println("finally out of bootstrapping") sm.setBootstrapState(BSStateComplete) } delete(sm.activeSyncs, res.ts.Key())