mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
lnwallet: add Start() and Stop() method to the FeeEstimator interface
This commit is contained in:
parent
0713c8c7ce
commit
b4855b687e
1 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
package lnwallet
|
||||
|
||||
import (
|
||||
"github.com/roasbeef/btcd/blockchain"
|
||||
"github.com/roasbeef/btcd/rpcclient"
|
||||
"github.com/roasbeef/btcutil"
|
||||
)
|
||||
|
||||
|
@ -17,6 +19,14 @@ type FeeEstimator interface {
|
|||
// until an initial confirmation and returns the estimated fee
|
||||
// expressed in satoshis/weight.
|
||||
EstimateFeePerWeight(numBlocks uint32) (btcutil.Amount, error)
|
||||
|
||||
// Start signals the FeeEstimator to start any processes or goroutines
|
||||
// it needs to perform its duty.
|
||||
Start() error
|
||||
|
||||
// Stop stops any spawned goroutines and cleans up the resources used
|
||||
// by the fee estimator.
|
||||
Stop() error
|
||||
}
|
||||
|
||||
// StaticFeeEstimator will return a static value for all fee calculation
|
||||
|
|
Loading…
Add table
Reference in a new issue