Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions p2p/connection_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ func broadcast_Block_Coded(cbl *block.Complete_Block, PeerID uint64, first_seen
globals.Logger.Error(nil, "we want to broadcast block, but donot have peers, most possibly block will go stale")
return
}
if len(connections) == 1 && (PeerID == connections[0].Peer_ID || connections[0].Peer_ID == GetPeerID()) {
return
}
for _, v := range connections {
select {
case <-Exit_Event:
Expand Down