mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-07 19:30:46 +02:00
autopilot/agent: trace log reason nodes being skipped
This commit is contained in:
@@ -541,10 +541,28 @@ func (a *Agent) openChans(availableFunds btcutil.Amount, numChans uint32,
|
|||||||
connectedNodes := a.chanState.ConnectedNodes()
|
connectedNodes := a.chanState.ConnectedNodes()
|
||||||
a.chanStateMtx.Unlock()
|
a.chanStateMtx.Unlock()
|
||||||
|
|
||||||
|
for nID := range connectedNodes {
|
||||||
|
log.Tracef("Skipping node %x with open channel", nID[:])
|
||||||
|
}
|
||||||
|
|
||||||
a.pendingMtx.Lock()
|
a.pendingMtx.Lock()
|
||||||
|
|
||||||
|
for nID := range a.pendingOpens {
|
||||||
|
log.Tracef("Skipping node %x with pending channel open", nID[:])
|
||||||
|
}
|
||||||
|
|
||||||
|
for nID := range a.pendingConns {
|
||||||
|
log.Tracef("Skipping node %x with pending connection", nID[:])
|
||||||
|
}
|
||||||
|
|
||||||
|
for nID := range a.failedNodes {
|
||||||
|
log.Tracef("Skipping failed node %v", nID[:])
|
||||||
|
}
|
||||||
|
|
||||||
nodesToSkip := mergeNodeMaps(a.pendingOpens,
|
nodesToSkip := mergeNodeMaps(a.pendingOpens,
|
||||||
a.pendingConns, connectedNodes, a.failedNodes,
|
a.pendingConns, connectedNodes, a.failedNodes,
|
||||||
)
|
)
|
||||||
|
|
||||||
a.pendingMtx.Unlock()
|
a.pendingMtx.Unlock()
|
||||||
|
|
||||||
// Gather the set of all nodes in the graph, except those we
|
// Gather the set of all nodes in the graph, except those we
|
||||||
|
Reference in New Issue
Block a user