lnwallet/channel: use remoteACKedIndex instead of logIndex in
availableBalance
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -4948,7 +4948,8 @@ func (lc *LightningChannel) availableBalance() (lnwire.MilliSatoshi, int64) {
|
|||||||
|
|
||||||
// Next we'll grab the current set of log updates that are still active
|
// Next we'll grab the current set of log updates that are still active
|
||||||
// and haven't been garbage collected.
|
// and haven't been garbage collected.
|
||||||
htlcView := lc.fetchHTLCView(lc.remoteUpdateLog.logIndex,
|
remoteACKedIndex := lc.localCommitChain.tip().theirMessageIndex
|
||||||
|
htlcView := lc.fetchHTLCView(remoteACKedIndex,
|
||||||
lc.localUpdateLog.logIndex)
|
lc.localUpdateLog.logIndex)
|
||||||
feePerKw := lc.channelState.LocalCommitment.FeePerKw
|
feePerKw := lc.channelState.LocalCommitment.FeePerKw
|
||||||
dustLimit := lc.channelState.LocalChanCfg.DustLimit
|
dustLimit := lc.channelState.LocalChanCfg.DustLimit
|
||||||
|
|||||||
Reference in new issue
Block a user