mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
lntest: nil check edges
This commit is contained in:
@@ -312,10 +312,10 @@ func (s *State) updateEdgeStats() {
|
||||
// filterDisabled is a helper closure that filters out disabled
|
||||
// channels.
|
||||
filterDisabled := func(edge *lnrpc.ChannelEdge) bool {
|
||||
if edge.Node1Policy.Disabled {
|
||||
if edge.Node1Policy != nil && edge.Node1Policy.Disabled {
|
||||
return false
|
||||
}
|
||||
if edge.Node2Policy.Disabled {
|
||||
if edge.Node2Policy != nil && edge.Node2Policy.Disabled {
|
||||
return false
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user