lightningd: rebroadcast all pending txs each 30-60 seconds.

We also do it on every block, but since bitcoind can't always be counted
to rebroadcast for us, we might as well be aggressive!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-04-07 14:30:01 +09:30
parent 3754e283f8
commit 62fa91e23b
2 changed files with 9 additions and 1 deletions

View File

@@ -133,7 +133,7 @@ struct chain_topology {
struct bitcoind *bitcoind;
/* Timers we're running. */
struct oneshot *extend_timer, *updatefee_timer;
struct oneshot *extend_timer, *updatefee_timer, *rebroadcast_timer;
/* Bitcoin transactions we're broadcasting */
struct outgoing_tx_map *outgoing_txs;