Versions in this module Expand all Collapse all v0 v0.21.1 Mar 12, 2021 Changes in this version + const DefaultBlockPrioritySize + const DefaultEstimateFeeMaxRollback + const DefaultEstimateFeeMinRegisteredBlocks + const DefaultMinRelayTxFee + const MaxRBFSequence + const MaxReplacementEvictions + var EstimateFeeDatabaseKey = []byte("estimatefee") + func DisableLog() + func ErrToRejectErr(err error) (wire.RejectCode, string) + func GetTxVirtualSize(tx *vclutil.Tx) int64 + func UseLogger(logger btclog.Logger) + type BtcPerKilobyte float64 + type Config struct + AddrIndex *indexers.AddrIndex + BestHeight func() int32 + CalcSequenceLock func(*vclutil.Tx, *blockchain.UtxoViewpoint) (*blockchain.SequenceLock, error) + ChainParams *chaincfg.Params + FeeEstimator *FeeEstimator + FetchUtxoView func(*vclutil.Tx) (*blockchain.UtxoViewpoint, error) + HashCache *txscript.HashCache + IsDeploymentActive func(deploymentID uint32) (bool, error) + MedianTimePast func() time.Time + Policy Policy + SigCache *txscript.SigCache + type FeeEstimator struct + func NewFeeEstimator(maxRollback, minRegisteredBlocks uint32) *FeeEstimator + func RestoreFeeEstimator(data FeeEstimatorState) (*FeeEstimator, error) + func (ef *FeeEstimator) EstimateFee(numBlocks uint32) (BtcPerKilobyte, error) + func (ef *FeeEstimator) LastKnownHeight() int32 + func (ef *FeeEstimator) ObserveTransaction(t *TxDesc) + func (ef *FeeEstimator) RegisterBlock(block *vclutil.Block) error + func (ef *FeeEstimator) Rollback(hash *chainhash.Hash) error + func (ef *FeeEstimator) Save() FeeEstimatorState + type FeeEstimatorState []byte + type Policy struct + AcceptNonStd bool + DisableRelayPriority bool + FreeTxRelayLimit float64 + MaxOrphanTxSize int + MaxOrphanTxs int + MaxSigOpCostPerTx int + MaxTxVersion int32 + MinRelayTxFee vclutil.Amount + RejectReplacement bool + type RuleError struct + Err error + func (e RuleError) Error() string + type SatoshiPerByte float64 + func NewSatoshiPerByte(fee vclutil.Amount, size uint32) SatoshiPerByte + func (rate SatoshiPerByte) Fee(size uint32) vclutil.Amount + func (rate SatoshiPerByte) ToBtcPerKb() BtcPerKilobyte + type Tag uint64 + type TxDesc struct + StartingPriority float64 + type TxPool struct + func New(cfg *Config) *TxPool + func (mp *TxPool) CheckSpend(op wire.OutPoint) *vclutil.Tx + func (mp *TxPool) Count() int + func (mp *TxPool) FetchTransaction(txHash *chainhash.Hash) (*vclutil.Tx, error) + func (mp *TxPool) HaveTransaction(hash *chainhash.Hash) bool + func (mp *TxPool) IsOrphanInPool(hash *chainhash.Hash) bool + func (mp *TxPool) IsTransactionInPool(hash *chainhash.Hash) bool + func (mp *TxPool) LastUpdated() time.Time + func (mp *TxPool) MaybeAcceptTransaction(tx *vclutil.Tx, isNew, rateLimit bool) ([]*chainhash.Hash, *TxDesc, error) + func (mp *TxPool) MiningDescs() []*mining.TxDesc + func (mp *TxPool) ProcessOrphans(acceptedTx *vclutil.Tx) []*TxDesc + func (mp *TxPool) ProcessTransaction(tx *vclutil.Tx, allowOrphan, rateLimit bool, tag Tag) ([]*TxDesc, error) + func (mp *TxPool) RawMempoolVerbose() map[string]*btcjson.GetRawMempoolVerboseResult + func (mp *TxPool) RemoveDoubleSpends(tx *vclutil.Tx) + func (mp *TxPool) RemoveOrphan(tx *vclutil.Tx) + func (mp *TxPool) RemoveOrphansByTag(tag Tag) uint64 + func (mp *TxPool) RemoveTransaction(tx *vclutil.Tx, removeRedeemers bool) + func (mp *TxPool) TxDescs() []*TxDesc + func (mp *TxPool) TxHashes() []*chainhash.Hash + type TxRuleError struct + Description string + RejectCode wire.RejectCode + func (e TxRuleError) Error() string