mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-20 23:34:22 +01:00
22 lines
406 B
Go
22 lines
406 B
Go
package chain
|
|
|
|
import "context"
|
|
|
|
type FeeStrategy int
|
|
|
|
const (
|
|
FeeStrategyFastest FeeStrategy = 0
|
|
FeeStrategyHalfHour FeeStrategy = 1
|
|
FeeStrategyHour FeeStrategy = 2
|
|
FeeStrategyEconomy FeeStrategy = 3
|
|
FeeStrategyMinimum FeeStrategy = 4
|
|
)
|
|
|
|
type FeeEstimation struct {
|
|
SatPerVByte float64
|
|
}
|
|
|
|
type FeeEstimator interface {
|
|
EstimateFeeRate(context.Context, FeeStrategy) (*FeeEstimation, error)
|
|
}
|