Versions in this module Expand all Collapse all v7 v7.0.0 Jun 22, 2022 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 DataCache struct + func (c *DataCache) GetFeeInfo() (uint32, chainjson.FeeInfoMempool) + func (c *DataCache) GetFeeInfoExtra() (uint32, *apitypes.MempoolTicketFeeInfo) + func (c *DataCache) GetFeeRates(N int) (uint32, int64, int, []float64) + func (c *DataCache) GetFees(N int) (uint32, int, []float64) + func (c *DataCache) GetHeight() uint32 + func (c *DataCache) GetNumTickets() (uint32, uint32) + func (c *DataCache) GetTicketPriceCountTime(feeAvgLength int) *apitypes.PriceCountTime + func (c *DataCache) GetTicketsDetails(N int) (uint32, int64, int, TicketsDetails) + func (c *DataCache) SBits() (int64, uint32) + func (c *DataCache) StoreMPData(stakeData *StakeData, txsCopy []exptypes.MempoolTx, _ *exptypes.MempoolInfo) + type DataCollector struct + func NewDataCollector(dcrdChainSvr NodeClient, params *chaincfg.Params) *DataCollector + func (t *DataCollector) Collect() (*StakeData, []exptypes.MempoolTx, txhelpers.MempoolAddressStore, ...) + type MempoolAddressStore struct + 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 *DataCollector, savers []MempoolDataSaver, ...) (*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 NodeClient interface + GetBestBlock func(ctx context.Context) (*chainhash.Hash, int64, error) + GetBlockHeaderVerbose func(ctx context.Context, hash *chainhash.Hash) (*chainjson.GetBlockHeaderVerboseResult, error) + GetRawMempoolVerbose func(ctx context.Context, txType chainjson.GetRawMempoolTxTypeCmd) (map[string]chainjson.GetRawMempoolVerboseResult, error) + GetStakeDifficulty func(ctx context.Context) (*chainjson.GetStakeDifficultyResult, error) + TicketFeeInfo func(ctx context.Context, blocks *uint32, windows *uint32) (*chainjson.TicketFeeInfoResult, error) + 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/mempool/v5 github.com/decred/dcrdata/v3 github.com/decred/dcrdata/v4 github.com/decred/dcrdata/v6