Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: ensure we don't attempt to create a routing hint with a nil edge
In this commit, we fix an existing panic bug related to the recently added routing hints feature. If it's the case that the remote node didn't send us their edge, then when we go to compare the public keys to see if they match, we may attempt to deref an nil pointer. In order to fix this, we'll instead check the edgeInfo, which is guaranteed to also exist if the channel was found in the database. As a defensive step, before we go to actually aces the struct, we'll check that's it's non-nil and proceed if it is nil.
- Loading branch information