Created
June 2, 2019 04:53
-
-
Save openoms/912d66dcb005f2422f441982c71b154c to your computer and use it in GitHub Desktop.
LND patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/channeldb/graph.go b/channeldb/graph.go | |
index eaf3503c..9edd2955 100644 | |
--- a/channeldb/graph.go | |
+++ b/channeldb/graph.go | |
@@ -3025,7 +3025,8 @@ func (c *ChannelGraph) ChannelView() ([]EdgePoint, error) { | |
edgeIndex, chanID, | |
) | |
if err != nil { | |
- return err | |
+ return fmt.Errorf("failed fetching edge info "+ | |
+ "for chanpoint %v: %v", chanPoint, err) | |
} | |
pkScript, err := genMultiSigP2WSH( | |
@@ -3456,7 +3457,8 @@ func fetchChanEdgeInfo(edgeIndex *bbolt.Bucket, | |
edgeInfoBytes := edgeIndex.Get(chanID) | |
if edgeInfoBytes == nil { | |
- return ChannelEdgeInfo{}, ErrEdgeNotFound | |
+ return ChannelEdgeInfo{}, fmt.Errorf("chanID %x not found in "+ | |
+ "edgeindex", chanID[:]) | |
} | |
edgeInfoReader := bytes.NewReader(edgeInfoBytes) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment