mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-12 23:28:31 +01:00
lnwallet: add FeeEstimator interface, StaticFeeEstimator implementation
This commit adds the FeeEstimator interface, which can be used for future fee calculation implementations. Currently, there is only the StaticFeeEstimator implementation, which returns the same fee rate for any transaction.
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
320bed7e6b
commit
abe2e502d5
@@ -339,8 +339,9 @@ func createTestWallet(tempTestDir string, miningNode *rpctest.Harness,
|
||||
return nil, err
|
||||
}
|
||||
|
||||
estimator := lnwallet.StaticFeeEstimator{FeeRate: 250}
|
||||
wallet, err := lnwallet.NewLightningWallet(cdb, notifier, wc, signer,
|
||||
bio, netParams)
|
||||
bio, estimator, netParams)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user