Skip to content

Instantly share code, notes, and snippets.

@openoms
Created June 2, 2019 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save openoms/912d66dcb005f2422f441982c71b154c to your computer and use it in GitHub Desktop.
Save openoms/912d66dcb005f2422f441982c71b154c to your computer and use it in GitHub Desktop.
LND patch
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