lnwallet: fix bug don't set TheirCommitSig twice
This commit is contained in:
parent
e345f72d69
commit
4bb526854a
@ -645,6 +645,9 @@ func (l *LightningWallet) handleContributionMsg(req *addContributionMsg) {
|
||||
return
|
||||
}
|
||||
|
||||
pendingReservation.partialState.CsvDelay = theirContribution.CsvDelay
|
||||
pendingReservation.partialState.TheirDeliveryAddress = theirContribution.DeliveryAddress
|
||||
pendingReservation.partialState.ChanID = fundingNTxid
|
||||
pendingReservation.partialState.TheirCommitKey = theirCommitKey
|
||||
pendingReservation.partialState.TheirCommitTx = theirCommitTx
|
||||
pendingReservation.partialState.OurCommitTx = ourCommitTx
|
||||
@ -657,7 +660,6 @@ func (l *LightningWallet) handleContributionMsg(req *addContributionMsg) {
|
||||
req.err <- err
|
||||
return
|
||||
}
|
||||
pendingReservation.partialState.TheirCommitSig = sigTheirCommit
|
||||
pendingReservation.ourCommitmentSig = sigTheirCommit
|
||||
|
||||
req.err <- nil
|
||||
|
Loading…
Reference in New Issue
Block a user