Versions in this module Expand all Collapse all v0 v0.1.0 Jul 19, 2018 Changes in this version + const BaseStandardVerifyFlags + const DefaultBlockPrioritySize + const DefaultMinRelayTxFee + const MinHighPriority + func CalcPriority(tx *wire.MsgTx, utxoView *blockchain.UtxoViewpoint, nextBlockHeight int64) float64 + func DisableLog() + func ErrToRejectErr(err error) (wire.RejectCode, string) + func UseLogger(logger btclog.Logger) + type Config struct + AddrIndex *indexers.AddrIndex + BestHash func() *chainhash.Hash + BestHeight func() int64 + BlockByHash func(*chainhash.Hash) (*hcutil.Block, error) + CalcSequenceLock func(*hcutil.Tx, *blockchain.UtxoViewpoint) (*blockchain.SequenceLock, error) + ChainParams *chaincfg.Params + ExistsAddrIndex *indexers.ExistsAddrIndex + FetchUtxoView func(*hcutil.Tx, bool) (*blockchain.UtxoViewpoint, error) + NextStakeDifficulty func() (int64, error) + PastMedianTime func() time.Time + Policy Policy + SigCache *txscript.SigCache + SubsidyCache *blockchain.SubsidyCache + type Policy struct + AllowOldVotes bool + DisableRelayPriority bool + FreeTxRelayLimit float64 + MaxOrphanTxSize int + MaxOrphanTxs int + MaxSigOpsPerTx int + MaxTxVersion uint16 + MinRelayTxFee hcutil.Amount + RelayNonStd bool + StandardVerifyFlags func() (txscript.ScriptFlags, 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) CheckIfTxsExist(hashes []chainhash.Hash) bool + func (mp *TxPool) Count() int + func (mp *TxPool) FetchTransaction(txHash *chainhash.Hash, includeRecentBlock bool) (*hcutil.Tx, error) + 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) IsTransactionInPool(hash *chainhash.Hash) bool + func (mp *TxPool) IsTxTreeValid(best *chainhash.Hash) bool + func (mp *TxPool) LastUpdated() time.Time + func (mp *TxPool) MaybeAcceptTransaction(tx *hcutil.Tx, isNew, rateLimit bool) ([]*chainhash.Hash, error) + func (mp *TxPool) MiningDescs() []*mining.TxDesc + func (mp *TxPool) ProcessOrphans(hash *chainhash.Hash) []*hcutil.Tx + func (mp *TxPool) ProcessTransaction(tx *hcutil.Tx, allowOrphan, rateLimit, allowHighFees bool) ([]*hcutil.Tx, error) + func (mp *TxPool) PruneExpiredTx(height int64) + func (mp *TxPool) PruneStakeTx(requiredStakeDifficulty, height int64) + func (mp *TxPool) RawMempoolVerbose(filterType *stake.TxType) map[string]*dcrjson.GetRawMempoolVerboseResult + func (mp *TxPool) RemoveDoubleSpends(tx *hcutil.Tx) + func (mp *TxPool) RemoveOrphan(txHash *chainhash.Hash) + func (mp *TxPool) RemoveTransaction(tx *hcutil.Tx, removeRedeemers bool) + func (mp *TxPool) TxDescs() []*TxDesc + func (mp *TxPool) TxHashes() []*chainhash.Hash + func (mp *TxPool) VoteHashesForBlock(blockHash chainhash.Hash) []chainhash.Hash + func (mp *TxPool) VotesForBlocks(hashes []chainhash.Hash) [][]*VoteTx + type TxRuleError struct + Description string + RejectCode wire.RejectCode + func (e TxRuleError) Error() string + type VoteTx struct + SsgenHash chainhash.Hash + SstxHash chainhash.Hash + Vote bool