Versions in this module Expand all Collapse all v1 v1.1.1 Sep 17, 2020 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) (dcrutil.Amount, error) + func (stats *Estimator) IsEnabled() bool + func (stats *Estimator) ProcessBlock(block *dcrutil.Block) error + func (stats *Estimator) RemoveMemPoolTransaction(txHash *chainhash.Hash) + type EstimatorConfig struct + DatabaseFile string + ExtraBucketFee dcrutil.Amount + FeeRateStep float64 + MaxBucketFee dcrutil.Amount + MaxConfirms uint32 + MinBucketFee dcrutil.Amount + ReplaceBucketsOnLoad bool