cnct+sweeper: give contract court access to relay fee

Relay fee is needed later to sweep anchors at the minimum fee rate.
This commit is contained in:
Joost Jager committed 2020-03-17 16:25:37 +01:00
1 parent c376cdb733
commit 3b517390d8
3 files changed
+16

No files matched your search

+5
View File
@@ -9,6 +9,7 @@ import (
"github.com/lightningnetwork/lnd/input"
"github.com/lightningnetwork/lnd/invoices"
"github.com/lightningnetwork/lnd/lntypes"
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
"github.com/lightningnetwork/lnd/lnwire"
"github.com/lightningnetwork/lnd/sweep"
)
@@ -51,4 +52,8 @@ type UtxoSweeper interface {
// estimate before generating the required witnesses.
CreateSweepTx(inputs []input.Input, feePref sweep.FeePreference,
currentBlockHeight uint32) (*wire.MsgTx, error)
// RelayFeePerKW returns the minimum fee rate required for transactions
// to be relayed.
RelayFeePerKW() chainfee.SatPerKWeight
}