@@ -7781,7 +7781,10 @@ func (lc *LightningChannel) CreateCloseProposal(proposedFee btcutil.Amount,
77817781 // during the channel closing process.
77827782 ourBalance , theirBalance , err := CoopCloseBalance (
77837783 lc .channelState .ChanType , lc .channelState .IsInitiator ,
7784- proposedFee , lc .channelState .LocalCommitment ,
7784+ proposedFee ,
7785+ lc .channelState .LocalCommitment .LocalBalance .ToSatoshis (),
7786+ lc .channelState .LocalCommitment .RemoteBalance .ToSatoshis (),
7787+ lc .channelState .LocalCommitment .CommitFee ,
77857788 )
77867789 if err != nil {
77877790 return nil , nil , 0 , err
@@ -7879,7 +7882,10 @@ func (lc *LightningChannel) CompleteCooperativeClose(
78797882 // Get the final balances after subtracting the proposed fee.
78807883 ourBalance , theirBalance , err := CoopCloseBalance (
78817884 lc .channelState .ChanType , lc .channelState .IsInitiator ,
7882- proposedFee , lc .channelState .LocalCommitment ,
7885+ proposedFee ,
7886+ lc .channelState .LocalCommitment .LocalBalance .ToSatoshis (),
7887+ lc .channelState .LocalCommitment .RemoteBalance .ToSatoshis (),
7888+ lc .channelState .LocalCommitment .CommitFee ,
78837889 )
78847890 if err != nil {
78857891 return nil , 0 , err
0 commit comments