Versions in this module Expand all Collapse all v0 v0.0.3 Feb 7, 2021 Changes in this version + const BaseStandardVerifyFlags + const DefaultBlockPrioritySize + const DefaultMaxOrphanTxSize + const DefaultMinRelayTxFee + const MinHighPriority + const UnminedLayer + func CalcPriority(tx *types.Transaction, utxoView *blockchain.UtxoViewpoint, ...) float64 + func ErrToRejectErr(err error) (message.RejectCode, string) + type Config struct + AddrIndex *index.AddrIndex + BC *blockchain.BlockChain + BD *blockdag.BlockDAG + BestHash func() *hash.Hash + BestHeight func() uint64 + BlockByHash func(*hash.Hash) (*types.SerializedBlock, error) + CalcSequenceLock func(*types.Tx, *blockchain.UtxoViewpoint) (*blockchain.SequenceLock, error) + ChainParams *params.Params + ExistsAddrIndex *index.ExistsAddrIndex + FetchUtxoView func(*types.Tx) (*blockchain.UtxoViewpoint, error) + PastMedianTime func() time.Time + Policy Policy + SigCache *txscript.SigCache + SubsidyCache *blockchain.SubsidyCache + type Policy struct + AcceptNonStd bool + DisableRelayPriority bool + FreeTxRelayLimit float64 + MaxOrphanTxSize int + MaxOrphanTxs int + MaxSigOpsPerTx int + MaxTxVersion uint16 + MinRelayTxFee types.Amount + StandardVerifyFlags func() (txscript.ScriptFlags, error) + type PublicMempoolAPI struct + func NewPublicMempoolAPI(txPool *TxPool) *PublicMempoolAPI + func (api *PublicMempoolAPI) GetMempool(txType *string, verbose bool) (interface{}, error) + type RuleError struct + Err error + func (e RuleError) Error() string + type TxDesc struct + StartingPriority float64 + type TxPool struct + func New(cfg *Config) *TxPool + func (mp *TxPool) AddTransaction(utxoView *blockchain.UtxoViewpoint, tx *types.Tx, height uint64, fee int64) + func (mp *TxPool) FetchTransaction(txHash *hash.Hash) (*types.Tx, error) + func (mp *TxPool) HaveAllTransactions(hashes []hash.Hash) bool + func (mp *TxPool) HaveTransaction(hash *hash.Hash) bool + func (mp *TxPool) IsOrphanInPool(hash *hash.Hash) bool + func (mp *TxPool) IsTransactionInPool(hash *hash.Hash) bool + func (mp *TxPool) LastUpdated() time.Time + func (mp *TxPool) MaybeAcceptTransaction(tx *types.Tx, isNew, rateLimit bool) ([]*hash.Hash, error) + func (mp *TxPool) MiningDescs() []*types.TxDesc + func (mp *TxPool) ProcessOrphans(hash *hash.Hash) []*types.TxDesc + func (mp *TxPool) ProcessTransaction(tx *types.Tx, allowOrphan, rateLimit, allowHighFees bool) ([]*types.TxDesc, error) + func (mp *TxPool) PruneExpiredTx() + func (mp *TxPool) RemoveDoubleSpends(tx *types.Tx) + func (mp *TxPool) RemoveOrphan(txHash *hash.Hash) + func (mp *TxPool) RemoveTransaction(tx *types.Tx, removeRedeemers bool) + func (mp *TxPool) TxDescs() []*TxDesc + func (t *TxPool) API() rpc.API + type TxRuleError struct + Description string + RejectCode message.RejectCode + func (e TxRuleError) Error() string