Commit a48e70f9 authored by Jeromy's avatar Jeromy

log when dupe block is prevented

parent 29aa7547
...@@ -71,6 +71,7 @@ func (s *strategist) ShouldSendBlockToPeer(k u.Key, p peer.Peer) bool { ...@@ -71,6 +71,7 @@ func (s *strategist) ShouldSendBlockToPeer(k u.Key, p peer.Peer) bool {
// Dont resend blocks within a certain time period // Dont resend blocks within a certain time period
t, ok := ledger.sentToPeer[k] t, ok := ledger.sentToPeer[k]
if ok && t.Add(resendTimeoutPeriod).After(time.Now()) { if ok && t.Add(resendTimeoutPeriod).After(time.Now()) {
log.Error("Prevented block resend!")
return false return false
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment