Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
peer: check for ErrEdgeNotFound when loading chan edge for fwrding po…
…licy This commit adds a precautionary check for the error returned if the channel hasn’t yet been announced when attempting to read the our current routing policy to initialize the channelLink for a channel. Previously, if the channel wasn’t they announced, the function would return early instead of using the default policy. We also include another bug fix, that avoids a possible nil pointer panic in the case that the ChannelEdgeInfo reread form the graph is nil.
- Loading branch information