contractcourt: integration aux sweeper to breach arb

Similar to the sweeper, when we're about to make a new breach
transaction, we ask the sweeper for a new change address, if it has one.
Then when we go to publish, we notify broadcast.
This commit is contained in:
Olaoluwa Osuntokun
2024-06-23 23:33:27 -07:00
parent c59f11168b
commit 4920bf6e1a
3 changed files with 105 additions and 17 deletions

View File

@ -1187,6 +1187,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
Store: contractcourt.NewRetributionStore(
dbs.ChanStateDB,
),
AuxSweeper: s.implCfg.AuxSweeper,
},
)