Skip to content

Commit a4da841

Browse files
authored
Merge pull request #14996 from markya0616/send_not_announce
eth: send but not announce block to peers if propagate is true
2 parents 998abb9 + d4f11d9 commit a4da841

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎eth/handler.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ func (pm *ProtocolManager) BroadcastBlock(block *types.Block, propagate bool) {
688688
peer.SendNewBlock(block, td)
689689
}
690690
log.Trace("Propagated block", "hash", hash, "recipients", len(transfer), "duration", common.PrettyDuration(time.Since(block.ReceivedAt)))
691+
return
691692
}
692693
// Otherwise if the block is indeed in out own chain, announce it
693694
if pm.blockchain.HasBlock(hash) {

0 commit comments

Comments
 (0)