-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[backport] localchans: populate FundingScript for missing edges #10443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1361,7 +1361,7 @@ func (f *Manager) advancePendingChannelState(channel *channeldb.OpenChannel, | |
| } | ||
|
|
||
| txid := &channel.FundingOutpoint.Hash | ||
| fundingScript, err := makeFundingScript(channel) | ||
| fundingScript, err := MakeFundingScript(channel) | ||
| if err != nil { | ||
| log.Errorf("unable to create funding script for "+ | ||
| "ChannelPoint(%v): %v", | ||
|
|
@@ -3037,9 +3037,9 @@ func (f *Manager) waitForFundingWithTimeout( | |
| } | ||
| } | ||
|
|
||
| // makeFundingScript re-creates the funding script for the funding transaction | ||
| // MakeFundingScript re-creates the funding script for the funding transaction | ||
| // of the target channel. | ||
|
Comment on lines
+3040
to
3041
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per the LND Style Guide, exported functions should have detailed comments. The current comment for References
|
||
| func makeFundingScript(channel *channeldb.OpenChannel) ([]byte, error) { | ||
| func MakeFundingScript(channel *channeldb.OpenChannel) ([]byte, error) { | ||
| localKey := channel.LocalChanCfg.MultiSigKey.PubKey | ||
| remoteKey := channel.RemoteChanCfg.MultiSigKey.PubKey | ||
|
|
||
|
|
@@ -3086,7 +3086,7 @@ func (f *Manager) waitForFundingConfirmation( | |
| // Register with the ChainNotifier for a notification once the funding | ||
| // transaction reaches `numConfs` confirmations. | ||
| txid := completeChan.FundingOutpoint.Hash | ||
| fundingScript, err := makeFundingScript(completeChan) | ||
| fundingScript, err := MakeFundingScript(completeChan) | ||
| if err != nil { | ||
| log.Errorf("unable to create funding script for "+ | ||
| "ChannelPoint(%v): %v", completeChan.FundingOutpoint, | ||
|
|
@@ -3802,7 +3802,7 @@ func (f *Manager) annAfterSixConfs(completeChan *channeldb.OpenChannel, | |
| shortChanID.ToUint64(), completeChan.FundingOutpoint, | ||
| numConfs) | ||
|
|
||
| fundingScript, err := makeFundingScript(completeChan) | ||
| fundingScript, err := MakeFundingScript(completeChan) | ||
| if err != nil { | ||
| return fmt.Errorf("unable to create funding script "+ | ||
| "for ChannelPoint(%v): %v", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link for this bug fix points to
pull/xxxxx, which seems to be a placeholder. Please update it with the correct pull request number.