Consider existing commitment transaction feerate when bumping
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Tue, 11 Jul 2023 22:30:51 +0000 (15:30 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 14 Jul 2023 21:45:18 +0000 (14:45 -0700)
commit9088dae7daab47c46ad9b8447c376eceade7c7c4
treecf97a933bc90526c27b2e4c89d31f0459cefc54a
parent990c5000999d3497f13b802f7fd4dce014704a08
Consider existing commitment transaction feerate when bumping

With anchors, we've yet to change the frequency or aggressiveness of
feerate updates, so it's likely that commitment transactions have a
good enough feerate to confirm on its own. In any case, when producing a
child anchor transaction, we should already take into account the fees
paid by the commitment transaction itself, allowing the user to save
some satoshis. Unfortunately, in its current form, this will still
result in overpaying by a small margin at the expense of making the coin
selection API more complex.
lightning/src/events/bump_transaction.rs