lnwallet: fix bug don't set TheirCommitSig twice

This commit is contained in:
Olaoluwa Osuntokun 2015-12-26 00:03:53 -06:00
parent e345f72d69
commit 4bb526854a

@ -645,6 +645,9 @@ func (l *LightningWallet) handleContributionMsg(req *addContributionMsg) {
return return
} }
pendingReservation.partialState.CsvDelay = theirContribution.CsvDelay
pendingReservation.partialState.TheirDeliveryAddress = theirContribution.DeliveryAddress
pendingReservation.partialState.ChanID = fundingNTxid
pendingReservation.partialState.TheirCommitKey = theirCommitKey pendingReservation.partialState.TheirCommitKey = theirCommitKey
pendingReservation.partialState.TheirCommitTx = theirCommitTx pendingReservation.partialState.TheirCommitTx = theirCommitTx
pendingReservation.partialState.OurCommitTx = ourCommitTx pendingReservation.partialState.OurCommitTx = ourCommitTx
@ -657,7 +660,6 @@ func (l *LightningWallet) handleContributionMsg(req *addContributionMsg) {
req.err <- err req.err <- err
return return
} }
pendingReservation.partialState.TheirCommitSig = sigTheirCommit
pendingReservation.ourCommitmentSig = sigTheirCommit pendingReservation.ourCommitmentSig = sigTheirCommit
req.err <- nil req.err <- nil