mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
sweepbatcher: pass utxo to fee provider
This commit is contained in:
parent
7ebe2e5b30
commit
8c784ef761
4 changed files with 28 additions and 26 deletions
|
|
@ -7,6 +7,7 @@ import (
|
|||
"github.com/btcsuite/btcd/btcutil"
|
||||
"github.com/btcsuite/btcd/chaincfg"
|
||||
"github.com/btcsuite/btcd/txscript"
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/lightninglabs/loop/loopdb"
|
||||
"github.com/lightninglabs/loop/swap"
|
||||
"github.com/lightninglabs/loop/utils"
|
||||
|
|
@ -71,7 +72,8 @@ func newLoopOutSweepFeerateProvider(sweeper sweeper,
|
|||
|
||||
// GetMinFeeRate returns minimum required feerate for a sweep by swap hash.
|
||||
func (p *loopOutSweepFeerateProvider) GetMinFeeRate(ctx context.Context,
|
||||
swapHash lntypes.Hash) (chainfee.SatPerKWeight, error) {
|
||||
swapHash lntypes.Hash,
|
||||
_ wire.OutPoint) (chainfee.SatPerKWeight, error) {
|
||||
|
||||
_, feeRate, err := p.GetConfTargetAndFeeRate(ctx, swapHash)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue