Separate pending Decred votes from pending ticket purchases

Stake-related transactions in the mempool serve different purposes. A sudden rise in purchases and a sudden rise in votes imply different work for a block template builder.

Filter on the transaction class

Inspect votes and tickets separately on the same dcrd node. These calls return lists of transaction hashes; the example counts them. Use the revocations filter for a separate revocation series.

dcrctl getrawmempool false votes | jq length
dcrctl getrawmempool false tickets | jq length

Read a burst in context

If there are twenty pending purchases and four votes, the two counts cannot be added to estimate the number of votes for the next block. Votes reference particular blocks and the pool is local and volatile. Capture timestamps and tip hashes near both reads before comparing across nodes.

github.com getrawmempool