Versions in this module Expand all Collapse all v0 v0.9.3-Beta Dec 19, 2017 v0.9.0 Oct 29, 2017 Changes in this version + const DefaultBlockPrioritySize + const DefaultMinRelayTxFee + const MempoolHeight + 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 + BestKeyHeight func() int64 + BestRealKeyHeight func() int64 + BlockByHash func(*chainhash.Hash) (*hcashutil.Block, error) + ChainParams *chaincfg.Params + ExistsAddrIndex *indexers.ExistsAddrIndex + FetchUtxoView func(*hcashutil.Tx, bool) (*blockchain.UtxoViewpoint, error) + KeyHeightByHeight func(int64) int64 + NextStakeDifficulty func() (int64, error) + Policy Policy + SigCache *txscript.SigCache + SubsidyCache *blockchain.SubsidyCache + TimeSource blockchain.MedianTimeSource + type Policy struct + AllowOldVotes bool + DisableRelayPriority bool + FreeTxRelayLimit float64 + MaxOrphanTxSize int + MaxOrphanTxs int + MaxSigOpsPerTx int + MaxTxVersion uint16 + MinRelayTxFee hcashutil.Amount + RelayNonStd bool + 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) (*hcashutil.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(chain *blockchain.BlockChain, tx *hcashutil.Tx, isNew, rateLimit bool) ([]*chainhash.Hash, error) + func (mp *TxPool) MiningDescs() []*mining.TxDesc + func (mp *TxPool) ProcessOrphans(chain *blockchain.BlockChain, hash *chainhash.Hash) []*hcashutil.Tx + func (mp *TxPool) ProcessTransaction(chain *blockchain.BlockChain, tx *hcashutil.Tx, ...) ([]*hcashutil.Tx, error) + func (mp *TxPool) PruneExpiredTx(realKeyHeight int64) + func (mp *TxPool) PruneStakeTx(requiredStakeDifficulty, realKeyHeight int64) + func (mp *TxPool) RawMempoolVerbose(filterType *stake.TxType) map[string]*hcashjson.GetRawMempoolVerboseResult + func (mp *TxPool) RemoveDoubleSpends(tx *hcashutil.Tx) + func (mp *TxPool) RemoveOrphan(txHash *chainhash.Hash) + func (mp *TxPool) RemoveTransaction(tx *hcashutil.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