1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-10 11:52:21 +08:00

log when dupe block is prevented

This commit is contained in:
Jeromy
2014-12-07 21:03:54 +00:00
parent e4a8a2ed65
commit e22ef19d84

View File

@ -71,6 +71,7 @@ func (s *strategist) ShouldSendBlockToPeer(k u.Key, p peer.Peer) bool {
// Dont resend blocks within a certain time period
t, ok := ledger.sentToPeer[k]
if ok && t.Add(resendTimeoutPeriod).After(time.Now()) {
log.Error("Prevented block resend!")
return false
}