From 774192ecc78d62b2a0356fc1b823fbc6e7ca3d73 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 28 Dec 2015 23:38:50 -0600 Subject: [PATCH] lnwallet: store their commit sig in channel reservation --- lnwallet/reservation.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lnwallet/reservation.go b/lnwallet/reservation.go index 09719d0e9..98e7a281e 100644 --- a/lnwallet/reservation.go +++ b/lnwallet/reservation.go @@ -61,7 +61,8 @@ type ChannelReservation struct { theirFundingSigs [][]byte // Our signature for their version of the commitment transaction. - ourCommitmentSig []byte + ourCommitmentSig []byte + theirCommitmentSig []byte ourContribution *ChannelContribution theirContribution *ChannelContribution @@ -157,7 +158,7 @@ func (r *ChannelReservation) CompleteReservation(fundingSigs [][]byte, commitmen func (r *ChannelReservation) TheirSignatures() ([][]byte, []byte) { r.RLock() defer r.RUnlock() - return r.theirFundingSigs, r.partialState.TheirCommitSig + return r.theirFundingSigs, r.theirCommitmentSig } // FinalFundingTransaction...