mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
funding: populate the HtlcPoint during the funding workflow
This commit is contained in:
parent
8b0de51003
commit
4700c1be04
1 changed files with 4 additions and 0 deletions
|
@ -836,6 +836,7 @@ func (f *fundingManager) handleFundingOpen(fmsg *fundingOpenMsg) {
|
|||
RevocationBasePoint: copyPubKey(msg.RevocationPoint),
|
||||
PaymentBasePoint: copyPubKey(msg.PaymentPoint),
|
||||
DelayBasePoint: copyPubKey(msg.DelayedPaymentPoint),
|
||||
HtlcBasePoint: copyPubKey(msg.HtlcPoint),
|
||||
},
|
||||
}
|
||||
err = reservation.ProcessSingleContribution(remoteContribution)
|
||||
|
@ -868,6 +869,7 @@ func (f *fundingManager) handleFundingOpen(fmsg *fundingOpenMsg) {
|
|||
RevocationPoint: ourContribution.RevocationBasePoint,
|
||||
PaymentPoint: ourContribution.PaymentBasePoint,
|
||||
DelayedPaymentPoint: ourContribution.DelayBasePoint,
|
||||
HtlcPoint: ourContribution.HtlcBasePoint,
|
||||
FirstCommitmentPoint: ourContribution.FirstCommitmentPoint,
|
||||
}
|
||||
err = f.cfg.SendToPeer(fmsg.peerAddress.IdentityKey, &fundingAccept)
|
||||
|
@ -948,6 +950,7 @@ func (f *fundingManager) handleFundingAccept(fmsg *fundingAcceptMsg) {
|
|||
RevocationBasePoint: copyPubKey(msg.RevocationPoint),
|
||||
PaymentBasePoint: copyPubKey(msg.PaymentPoint),
|
||||
DelayBasePoint: copyPubKey(msg.DelayedPaymentPoint),
|
||||
HtlcBasePoint: copyPubKey(msg.HtlcPoint),
|
||||
},
|
||||
}
|
||||
remoteContribution.CsvDelay = f.cfg.RequiredRemoteDelay(resCtx.chanAmt)
|
||||
|
@ -2086,6 +2089,7 @@ func (f *fundingManager) handleInitFundingMsg(msg *initFundingMsg) {
|
|||
FundingKey: ourContribution.MultiSigKey,
|
||||
RevocationPoint: ourContribution.RevocationBasePoint,
|
||||
PaymentPoint: ourContribution.PaymentBasePoint,
|
||||
HtlcPoint: ourContribution.HtlcBasePoint,
|
||||
DelayedPaymentPoint: ourContribution.DelayBasePoint,
|
||||
FirstCommitmentPoint: ourContribution.FirstCommitmentPoint,
|
||||
ChannelFlags: lnwire.FFAnnounceChannel,
|
||||
|
|
Loading…
Add table
Reference in a new issue