Versions in this module Expand all Collapse all v1 v1.6.14 Mar 23, 2021 v1.6.10 Mar 23, 2021 Changes in this version + const DefaultFeeRateStep + const DefaultMaxBucketFeeMultiplier + const DefaultMaxConfirmations + var ErrNoSuccessPctBucketFound = errors.New(...) + var ErrNotEnoughTxsForEstimate = errors.New(...) + func DisableLog() + func UseLogger(logger slog.Logger) + type ErrTargetConfTooLarge struct + MaxConfirms int32 + ReqConfirms int32 + func (e ErrTargetConfTooLarge) Error() string + type Estimator struct + func NewEstimator(cfg *EstimatorConfig) (*Estimator, error) + func (stats *Estimator) AddMemPoolTransaction(txHash *chainhash.Hash, fee, size int64, txType stake.TxType) + func (stats *Estimator) Close() + func (stats *Estimator) DumpBuckets() string + func (stats *Estimator) Enable(bestHeight int64) + func (stats *Estimator) EstimateFee(targetConfs int32) (vclutil.Amount, error) + func (stats *Estimator) IsEnabled() bool + func (stats *Estimator) ProcessBlock(block *vclutil.Block) error + func (stats *Estimator) RemoveMemPoolTransaction(txHash *chainhash.Hash) + type EstimatorConfig struct + DatabaseFile string + ExtraBucketFee vclutil.Amount + FeeRateStep float64 + MaxBucketFee vclutil.Amount + MaxConfirms uint32 + MinBucketFee vclutil.Amount + ReplaceBucketsOnLoad bool