@@ -6,12 +6,12 @@ import (
66 "time"
77
88 "github.com/btcsuite/btcd/chaincfg"
9- "github.com/lightningnetwork/lnd/lntypes"
10- "github.com/lightningnetwork/lnd/zpay32"
11-
129 "github.com/btcsuite/btcd/wire"
1310 "github.com/lightninglabs/loop/lndclient"
1411 "github.com/lightningnetwork/lnd/chainntnfs"
12+ "github.com/lightningnetwork/lnd/lntypes"
13+ "github.com/lightningnetwork/lnd/lnwallet"
14+ "github.com/lightningnetwork/lnd/zpay32"
1515)
1616
1717var testStartingHeight = int32 (600 )
@@ -20,7 +20,9 @@ var testStartingHeight = int32(600)
2020// tests.
2121func NewMockLnd () * LndMockServices {
2222 lightningClient := & mockLightningClient {}
23- walletKit := & mockWalletKit {}
23+ walletKit := & mockWalletKit {
24+ feeEstimates : make (map [int32 ]lnwallet.SatPerKWeight ),
25+ }
2426 chainNotifier := & mockChainNotifier {}
2527 signer := & mockSigner {}
2628 invoices := & mockInvoices {}
@@ -197,3 +199,9 @@ func (s *LndMockServices) DecodeInvoice(request string) (*zpay32.Invoice,
197199
198200 return zpay32 .Decode (request , s .ChainParams )
199201}
202+
203+ func (s * LndMockServices ) SetFeeEstimate (confTarget int32 ,
204+ feeEstimate lnwallet.SatPerKWeight ) {
205+
206+ s .WalletKit .(* mockWalletKit ).feeEstimates [confTarget ] = feeEstimate
207+ }
0 commit comments