Skip to content

Commit

Permalink
Merge pull request ethereum#14996 from markya0616/send_not_announce
Browse files Browse the repository at this point in the history
eth: send but not announce block to peers if propagate is true
  • Loading branch information
karalabe authored Aug 18, 2017
2 parents 998abb9 + d4f11d9 commit a4da841
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ func (pm *ProtocolManager) BroadcastBlock(block *types.Block, propagate bool) {
peer.SendNewBlock(block, td)
}
log.Trace("Propagated block", "hash", hash, "recipients", len(transfer), "duration", common.PrettyDuration(time.Since(block.ReceivedAt)))
return
}
// Otherwise if the block is indeed in out own chain, announce it
if pm.blockchain.HasBlock(hash) {
Expand Down

0 comments on commit a4da841

Please sign in to comment.