mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-18 14:24:21 +01:00
23 lines
391 B
Go
23 lines
391 B
Go
package chain
|
|
|
|
import "context"
|
|
|
|
type DefaultFeeEstimator struct {
|
|
targetConf uint32
|
|
}
|
|
|
|
func NewDefaultFeeEstimator(targetConf uint32) *DefaultFeeEstimator {
|
|
return &DefaultFeeEstimator{
|
|
targetConf: targetConf,
|
|
}
|
|
}
|
|
|
|
func (e *DefaultFeeEstimator) EstimateFeeRate(
|
|
context.Context,
|
|
FeeStrategy,
|
|
) (*FeeEstimation, error) {
|
|
return &FeeEstimation{
|
|
TargetConf: &e.targetConf,
|
|
}, nil
|
|
}
|