mirror of
https://github.com/status-im/whisper.git
synced 2025-02-01 05:24:56 +00:00
Apply part of the watchdog change to status-go whisper module
This commit is contained in:
parent
d441b04413
commit
502d98953e
@ -195,6 +195,10 @@ func (peer *Peer) expire() {
|
|||||||
// broadcast iterates over the collection of envelopes and transmits yet unknown
|
// broadcast iterates over the collection of envelopes and transmits yet unknown
|
||||||
// ones over the network.
|
// ones over the network.
|
||||||
func (peer *Peer) broadcast() error {
|
func (peer *Peer) broadcast() error {
|
||||||
|
if peer.peer.IsFlaky() {
|
||||||
|
log.Trace("Waiting for a peer to restore communication", "ID", peer.peer.ID())
|
||||||
|
return nil
|
||||||
|
}
|
||||||
envelopes := peer.host.Envelopes()
|
envelopes := peer.host.Envelopes()
|
||||||
bundle := make([]*Envelope, 0, len(envelopes))
|
bundle := make([]*Envelope, 0, len(envelopes))
|
||||||
for _, envelope := range envelopes {
|
for _, envelope := range envelopes {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user