lightningd: code to spend anchor outputs if we want to boost commitment tx.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-06-26 08:38:21 +09:30
parent e036080fc5
commit 5332a8a67a
9 changed files with 482 additions and 25 deletions

View File

@@ -183,6 +183,9 @@ u32 get_network_blockheight(const struct chain_topology *topo);
u32 feerate_for_deadline(const struct chain_topology *topo, u32 blockcount);
u32 smoothed_feerate_for_deadline(const struct chain_topology *topo, u32 blockcount);
/* Get feerate to hit this *block number*. */
u32 feerate_for_target(const struct chain_topology *topo, u64 deadline);
/* Get range of feerates to insist other side abide by for normal channels.
* If we have to guess, sets *unknown to true, otherwise false. */
u32 feerate_min(struct lightningd *ld, bool *unknown);