lnd: start using BudgetAggregator

This commit is contained in:
yyforyongyu 2024-03-18 06:57:49 +08:00
parent 54ade99ce2
commit c44b8a4b45
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -1063,9 +1063,8 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
return nil, err
}
aggregator := sweep.NewSimpleUtxoAggregator(
cc.FeeEstimator, cfg.Sweeper.MaxFeeRate.FeePerKWeight(),
sweep.DefaultMaxInputsPerTx,
aggregator := sweep.NewBudgetAggregator(
cc.FeeEstimator, sweep.DefaultMaxInputsPerTx,
)
s.txPublisher = sweep.NewTxPublisher(sweep.TxPublisherConfig{