log when dupe block is prevented
Jeromy committed
Dec 7, 2014 at 21:03 UTC
e22ef19d84af682c4848e9da3053737ecea56e5f
1 file changed
+1
exchange/bitswap/strategy/strategy.go
+1
@@ -71,6 +71,7 @@ func (s *strategist) ShouldSendBlockToPeer(k u.Key, p peer.Peer) bool {
71
// Dont resend blocks within a certain time period
72
t, ok := ledger.sentToPeer[k]
73
if ok && t.Add(resendTimeoutPeriod).After(time.Now()) {
74
+ log.Error("Prevented block resend!")
75
return false
76
}
77