Files
lspd/chain/default_fee_estimator.go
2024-02-02 14:08:15 +01:00

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
}