mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-07 14:00:08 +02:00
rpc+routing: fix panic when channel edge but no edge info in db
This commit is contained in:
@ -1601,6 +1601,8 @@ func (r *rpcServer) GetNetworkInfo(context.Context, *lnrpc.NetworkInfoRequest) (
|
||||
chanCapacity = c2.Capacity
|
||||
case c2 == nil:
|
||||
chanCapacity = c1.Capacity
|
||||
case c1 == nil && c2 == nil:
|
||||
return nil
|
||||
default:
|
||||
chanCapacity = c1.Capacity
|
||||
}
|
||||
|
Reference in New Issue
Block a user