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 BaseStandardVerifyFlags + const DefaultBlockPrioritySize + const DefaultMinRelayTxFee + const ErrAlreadyExists + const ErrAlreadyVoted + const ErrCoinbase + const ErrDuplicate + const ErrDuplicateRevocation + const ErrDustOutput + const ErrExpired + const ErrFeeTooHigh + const ErrInsufficientFee + const ErrInsufficientPriority + const ErrInvalid + const ErrMempoolDoubleSpend + const ErrNonStandard + const ErrOldVote + const ErrOrphan + const ErrOrphanPolicyViolation + const ErrSeqLockUnmet + const ErrTSpendInvalidExpiry + const ErrTSpendMinedOnAncestor + const ErrTooManyTSpends + const ErrTooManyVotes + const MaxStandardTxSize + const MempoolMaxConcurrentTSpends + func UseLogger(logger slog.Logger) + type Config struct + AddTxToFeeEstimation func(txHash *chainhash.Hash, fee, size int64, txType stake.TxType) + AddrIndex *indexers.AddrIndex + BestHash func() *chainhash.Hash + BestHeight func() int64 + BlockByHash func(*chainhash.Hash) (*vclutil.Block, error) + CalcSequenceLock func(*vclutil.Tx, *blockchain.UtxoViewpoint) (*blockchain.SequenceLock, error) + ChainParams *chaincfg.Params + ExistsAddrIndex *indexers.ExistsAddrIndex + FetchUtxoView func(*vclutil.Tx, bool) (*blockchain.UtxoViewpoint, error) + IsTreasuryAgendaActive func() (bool, error) + NextStakeDifficulty func() (int64, error) + OnTSpendReceived func(voteTx *vclutil.Tx) + OnVoteReceived func(voteTx *vclutil.Tx) + PastMedianTime func() time.Time + Policy Policy + RemoveTxFromFeeEstimation func(txHash *chainhash.Hash) + SigCache *txscript.SigCache + SubsidyCache *standalone.SubsidyCache + TSpendMinedOnAncestor func(tspend chainhash.Hash) error + type ErrorKind string + func (e ErrorKind) Error() string + type Policy struct + AcceptNonStd bool + AcceptSequenceLocks func() (bool, error) + AllowOldVotes bool + DisableRelayPriority bool + EnableAncestorTracking bool + FreeTxRelayLimit float64 + MaxOrphanTxSize int + MaxOrphanTxs int + MaxSigOpsPerTx int + MaxTxVersion uint16 + MaxVoteAge uint16 + MinRelayTxFee vclutil.Amount + StandardVerifyFlags func() (txscript.ScriptFlags, error) + type RuleError struct + Description string + Err error + func (e RuleError) Error() string + func (e RuleError) Unwrap() error + type Tag uint64 + type TxDesc struct + StartingPriority float64 + type TxPool struct + func New(cfg *Config) *TxPool + func (mp *TxPool) Count() int + func (mp *TxPool) FetchTransaction(txHash *chainhash.Hash) (*vclutil.Tx, error) + func (mp *TxPool) HaveAllTransactions(hashes []chainhash.Hash) bool + func (mp *TxPool) HaveTransaction(hash *chainhash.Hash) bool + func (mp *TxPool) HaveTransactions(hashes []*chainhash.Hash) []bool + func (mp *TxPool) IsOrphanInPool(hash *chainhash.Hash) bool + func (mp *TxPool) IsRegTxTreeKnownDisapproved(hash *chainhash.Hash) bool + func (mp *TxPool) IsTransactionInPool(hash *chainhash.Hash) bool + func (mp *TxPool) LastUpdated() time.Time + func (mp *TxPool) MaybeAcceptDependents(tx *vclutil.Tx, isTreasuryEnabled bool) []*vclutil.Tx + func (mp *TxPool) MaybeAcceptTransaction(tx *vclutil.Tx, isNew, rateLimit bool) ([]*chainhash.Hash, error) + func (mp *TxPool) MiningView() mining.TxMiningView + func (mp *TxPool) ProcessOrphans(acceptedTx *vclutil.Tx, isTreasuryEnabled bool) []*vclutil.Tx + func (mp *TxPool) ProcessTransaction(tx *vclutil.Tx, allowOrphan, rateLimit, allowHighFees bool, tag Tag) ([]*vclutil.Tx, error) + func (mp *TxPool) PruneExpiredTx() + func (mp *TxPool) PruneStakeTx(requiredStakeDifficulty, height int64) + func (mp *TxPool) RemoveDoubleSpends(tx *vclutil.Tx, isTreasuryEnabled bool) + func (mp *TxPool) RemoveOrphan(tx *vclutil.Tx, isTreasuryEnabled bool) + func (mp *TxPool) RemoveOrphansByTag(tag Tag, isTreasuryEnabled bool) uint64 + func (mp *TxPool) RemoveTransaction(tx *vclutil.Tx, removeRedeemers bool, isTreasuryEnabled bool) + func (mp *TxPool) TSpendHashes() []chainhash.Hash + func (mp *TxPool) TxDescs() []*TxDesc + func (mp *TxPool) TxHashes() []*chainhash.Hash + func (mp *TxPool) VerboseTxDescs() []*VerboseTxDesc + func (mp *TxPool) VoteHashesForBlock(blockHash *chainhash.Hash) []chainhash.Hash + func (mp *TxPool) VotesForBlocks(hashes []chainhash.Hash) [][]mining.VoteDesc + type VerboseTxDesc struct + CurrentPriority float64 + Depends []*TxDesc