mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-01 02:51:37 +02:00
rpc+routing: fix panic when channel edge but no edge info in db
This commit is contained in:
@ -831,6 +831,8 @@ func (r *ChannelRouter) syncChannelGraph(syncReq *syncRequest) error {
|
||||
chanID = lnwire.NewChanIDFromInt(e1.ChannelID)
|
||||
case e2 != nil:
|
||||
chanID = lnwire.NewChanIDFromInt(e2.ChannelID)
|
||||
case e1 == nil && e2 == nil:
|
||||
return nil
|
||||
default:
|
||||
chanID = lnwire.NewChanIDFromInt(e1.ChannelID)
|
||||
}
|
||||
|
Reference in New Issue
Block a user