lnwallet: remove unused WebAPIEstimator field

This commit is contained in:
Joost Jager committed 2020-09-14 11:51:01 +02:00
1 parent c704c5747a
commit 23cd2f40eb
3 files changed
+2 -10

No files matched your search

+1 -8
View File
@@ -540,23 +540,16 @@ type WebAPIEstimator struct {
feesMtx sync.Mutex
feeByBlockTarget map[uint32]uint32
// defaultFeePerKw is a fallback value that we'll use if we're unable
// to query the API for any reason.
defaultFeePerKw SatPerKWeight
quit chan struct{}
wg sync.WaitGroup
}
// NewWebAPIEstimator creates a new WebAPIEstimator from a given URL and a
// fallback default fee. The fees are updated whenever a new block is mined.
func NewWebAPIEstimator(
api WebAPIFeeSource, defaultFee SatPerKWeight) *WebAPIEstimator {
func NewWebAPIEstimator(api WebAPIFeeSource) *WebAPIEstimator {
return &WebAPIEstimator{
apiSource: api,
feeByBlockTarget: make(map[uint32]uint32),
defaultFeePerKw: defaultFee,
quit: make(chan struct{}),
}
}