loopin: store loop in on-chain fees

This commit is contained in:
carla 2021-03-03 11:21:24 +02:00
parent 9ce7fe4df9
commit 4911130671
No known key found for this signature in database
GPG key ID: 4CA7FE54A6213C91
4 changed files with 109 additions and 25 deletions

View file

@ -16,6 +16,10 @@ import (
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
)
// DefaultMockFee is the default value we use for fee estimates when no values
// are set for specific conf targets.
var DefaultMockFee = chainfee.SatPerKWeight(10000)
type mockWalletKit struct {
lnd *LndMockServices
keyIndex int32
@ -123,7 +127,7 @@ func (m *mockWalletKit) EstimateFee(ctx context.Context, confTarget int32) (
feeEstimate, ok := m.feeEstimates[confTarget]
if !ok {
return 10000, nil
return DefaultMockFee, nil
}
return feeEstimate, nil