discovery: don't prune *our* channels during retransmission tick
This commit modifies the recently modified logic for self-channel retransmission to exclude pruning *our* channels which haven’t been updated since the broadcastInterval. Instead, we only re-broadcast channels of ours that haven’t been updated in 24 hours.
This commit is contained in:
2 files changed
+38
-40
No files matched your search
+2
-1
@@ -690,7 +690,8 @@ func (c *ChannelGraph) PruneTip() (*chainhash.Hash, uint32, error) {
|
||||
}
|
||||
|
||||
// DeleteChannelEdge removes an edge from the database as identified by it's
|
||||
// funding outpoint. If the edge does not exist within the database, then this
|
||||
// funding outpoint. If the edge does not exist within the database, then
|
||||
// ErrEdgeNotFound will be returned.
|
||||
func (c *ChannelGraph) DeleteChannelEdge(chanPoint *wire.OutPoint) error {
|
||||
// TODO(roasbeef): possibly delete from node bucket if node has no more
|
||||
// channels
|
||||
|
||||
Reference in new issue
Block a user