Skip to content

Commit

Permalink
remove verbose prints
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jun 22, 2024
1 parent 7e12673 commit 3420feb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions blocksync/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,6 @@ func (bpr *bpRequester) redo(peerID p2p.ID) {
}

func (bpr *bpRequester) pickPeerAndSendRequest() {
fmt.Println("pickPeerAndSendRequest")
bpr.mtx.Lock()
secondPeerID := bpr.secondPeerID
bpr.mtx.Unlock()
Expand Down Expand Up @@ -722,7 +721,6 @@ PICK_PEER_LOOP:
// Picks a second peer and sends a request to it. If the second peer is already
// set, does nothing.
func (bpr *bpRequester) pickSecondPeerAndSendRequest() (picked bool) {
fmt.Println("pickSecondPeerAndSendRequest")
bpr.mtx.Lock()
if bpr.secondPeerID != "" {
bpr.mtx.Unlock()
Expand Down Expand Up @@ -762,7 +760,6 @@ OUTER_LOOP:
bpr.pickPeerAndSendRequest()

poolHeight := bpr.pool.Height()
fmt.Println("poolHeight", poolHeight)
if bpr.height-poolHeight < minBlocksForSingleRequest {
bpr.pickSecondPeerAndSendRequest()
}
Expand Down

0 comments on commit 3420feb

Please sign in to comment.