lnwallet: add new rebroadcaster interface, use for background tx publish

In this commit, we add a new Rebroadcaster interface to be used for
publishing transactions passively in the background until they've been
confirmed on chain. This is useful if a tx drops out of the mempool, but
then the pool clears down and has more space available to accept the tx
at the current fee level.
This commit is contained in:
Olaoluwa Osuntokun committed 2023-03-10 19:07:35 -08:00
1 parent dcf69169e5
commit 10929d80cc
3 files changed
+104

No files matched your search

+5
View File
@@ -56,4 +56,9 @@ type Config struct {
// NetParams is the set of parameters that tells the wallet which chain
// it will be operating on.
NetParams chaincfg.Params
// Rebroadcaster is an optional config param that can be used to
// passively rebroadcast transactions in the background until they're
// detected as being confirmed.
Rebroadcaster Rebroadcaster
}