mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 01:23:51 +02:00
Merge pull request #1807 from wpaulino/retransmit-zero-stale-channels
discovery/gossiper: check ErrNoGraphEdgesFound for restransmitStaleChannels
This commit is contained in:
@@ -950,8 +950,7 @@ func (d *AuthenticatedGossiper) networkHandler() {
|
|||||||
// To start, we'll first check to see if there are any stale channels
|
// To start, we'll first check to see if there are any stale channels
|
||||||
// that we need to re-transmit.
|
// that we need to re-transmit.
|
||||||
if err := d.retransmitStaleChannels(); err != nil {
|
if err := d.retransmitStaleChannels(); err != nil {
|
||||||
log.Errorf("unable to rebroadcast stale channels: %v",
|
log.Errorf("Unable to rebroadcast stale channels: %v", err)
|
||||||
err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// We'll use this validation to ensure that we process jobs in their
|
// We'll use this validation to ensure that we process jobs in their
|
||||||
@@ -1349,9 +1348,9 @@ func (d *AuthenticatedGossiper) retransmitStaleChannels() error {
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil && err != channeldb.ErrGraphNoEdgesFound {
|
||||||
return fmt.Errorf("error while retrieving outgoing "+
|
return fmt.Errorf("unable to retrieve outgoing channels: %v",
|
||||||
"channels: %v", err)
|
err)
|
||||||
}
|
}
|
||||||
|
|
||||||
var signedUpdates []lnwire.Message
|
var signedUpdates []lnwire.Message
|
||||||
|
Reference in New Issue
Block a user