Versions in this module Expand all Collapse all v5 v5.0.2 Nov 6, 2019 v5.0.1 Oct 31, 2019 Changes in this version + const NumLatestMempoolTxns + func DisableLog() + func ParseTxns(txs []exptypes.MempoolTx, params *chaincfg.Params, lastBlock *BlockID) *exptypes.MempoolInfo + func UseLogger(logger slog.Logger) + type BlockID struct + Hash chainhash.Hash + Height int64 + Time int64 + type ByAbsoluteFee struct + func (tix ByAbsoluteFee) Less(i, j int) bool + type ByFeeRate struct + func (tix ByFeeRate) Less(i, j int) bool + type MempoolAddressStore struct + type MempoolDataCache struct + func (c *MempoolDataCache) GetFeeInfo() (uint32, chainjson.FeeInfoMempool) + func (c *MempoolDataCache) GetFeeInfoExtra() (uint32, *apitypes.MempoolTicketFeeInfo) + func (c *MempoolDataCache) GetFeeRates(N int) (uint32, int64, int, []float64) + func (c *MempoolDataCache) GetFees(N int) (uint32, int, []float64) + func (c *MempoolDataCache) GetHeight() uint32 + func (c *MempoolDataCache) GetNumTickets() (uint32, uint32) + func (c *MempoolDataCache) GetTicketPriceCountTime(feeAvgLength int) *apitypes.PriceCountTime + func (c *MempoolDataCache) GetTicketsDetails(N int) (uint32, int64, int, TicketsDetails) + func (c *MempoolDataCache) StoreMPData(stakeData *StakeData, txsCopy []exptypes.MempoolTx, _ *exptypes.MempoolInfo) + type MempoolDataCollector struct + func NewMempoolDataCollector(dcrdChainSvr *rpcclient.Client, params *chaincfg.Params) *MempoolDataCollector + func (t *MempoolDataCollector) Collect() (*StakeData, []exptypes.MempoolTx, txhelpers.MempoolAddressStore, ...) + type MempoolDataSaver interface + StoreMPData func(*StakeData, []exptypes.MempoolTx, *exptypes.MempoolInfo) + type MempoolInfo struct + CurrentHeight uint32 + LastCollectTime time.Time + NumTicketPurchasesInMempool uint32 + NumTicketsSinceStatsReport int32 + type MempoolMonitor struct + func NewMempoolMonitor(ctx context.Context, collector *MempoolDataCollector, ...) (*MempoolMonitor, error) + func (p *MempoolMonitor) BlockHandler(height uint32, _ string) error + func (p *MempoolMonitor) CollectAndStore() error + func (p *MempoolMonitor) LastBlockHash() chainhash.Hash + func (p *MempoolMonitor) LastBlockHeight() int64 + func (p *MempoolMonitor) LastBlockTime() int64 + func (p *MempoolMonitor) Refresh() (*StakeData, []exptypes.MempoolTx, *exptypes.MempoolInfo, error) + func (p *MempoolMonitor) TxHandler(rawTx *chainjson.TxRawResult) error + func (p *MempoolMonitor) UnconfirmedTxnsForAddress(address string) (*txhelpers.AddressOutpoints, int64, error) + type MinableFeeInfo struct + type NewTx struct + Hash *chainhash.Hash + T time.Time + type ScriptPubKeyResult struct + Addresses []string + Asm string + CommitAmt *float64 + Hex string + ReqSigs int32 + Type string + type ScriptSig struct + Asm string + Hex string + type StakeData struct + AllTicketsDetails TicketsDetails + LatestBlock BlockID + MinableFees *MinableFeeInfo + NewTickets uint32 + NumTickets uint32 + NumVotes uint32 + StakeDiff float64 + Ticketfees *chainjson.TicketFeeInfoResult + Time time.Time + func (m *StakeData) Hash() string + func (m *StakeData) Height() uint32 + type TicketsDetails apitypes.TicketsDetails + func (tix TicketsDetails) Len() int + func (tix TicketsDetails) Swap(i, j int) + type Tx struct + Expiry uint32 + Hex string + LockTime uint32 + Txid string + Version int32 + Vin []Vin + Vout []Vout + type Vin struct + AmountIn float64 + BlockHeight uint32 + BlockIndex uint32 + Coinbase string + ScriptSig *ScriptSig + Sequence uint32 + Stakebase string + Tree int8 + Txid string + Vout uint32 + type Vout struct + N uint32 + ScriptPubKey ScriptPubKeyResult + Value float64 + Version uint16 Other modules containing this package github.com/decred/dcrdata github.com/decred/dcrdata/mempool github.com/decred/dcrdata/mempool/v4 github.com/decred/dcrdata/v3 github.com/decred/dcrdata/v4 github.com/decred/dcrdata/v6 github.com/decred/dcrdata/v7