mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-04 13:44:22 +01:00
closing_control: Fix loop limit in better_closing_fee.
This commit is contained in:
@@ -31,7 +31,7 @@ static bool better_closing_fee(struct lightningd *ld,
|
||||
fee -= tx->output[i].amount;
|
||||
|
||||
last_fee = channel->funding_satoshi;
|
||||
for (i = 0; i < tal_count(channel->last_tx); i++)
|
||||
for (i = 0; i < tal_count(channel->last_tx->output); i++)
|
||||
last_fee -= channel->last_tx->output[i].amount;
|
||||
|
||||
log_debug(channel->log, "Their actual closing tx fee is %"PRIu64
|
||||
|
||||
Reference in New Issue
Block a user