Skip to main content

Module pending

Module pending 

Source
Expand description

The pending receive scanner: a guardian-local, non-consensus view of the receive outputs in its mempool and in the blocks just below its chain tip, served to clients so they can render peg-in progress.

Structsยง

PendingCache ๐Ÿ”’
State the pending receive scanner carries between runs.

Enumsยง

MempoolScan ๐Ÿ”’
How one pass over the guardianโ€™s mempool ended.

Constantsยง

MAX_PENDING_DEPTH ๐Ÿ”’
Number of blocks below the local chain tip that the pending receive scanner reports on.

Functionsยง

filtered_receive_outputs ๐Ÿ”’
Returns the receive outputs of tx that pass the probabilistic filter.
mempool_scan_budget ๐Ÿ”’
How long one pass may spend fetching mempool transactions before it publishes what it has and starts the next pass.
scan_pending_blocks ๐Ÿ”’
Collects the receive outputs of the most recently mined blocks.
scan_pending_mempool ๐Ÿ”’
Collects the receive outputs of the transactions in the nodeโ€™s mempool.
scan_pending_receives ๐Ÿ”’
Collects every receive output a guardian can see but the federation has not yet recorded, from the recent blocks and, unless mempool_budget is None because the mempool scan is turned off, the mempool.
spawn_pending_receive_scanner ๐Ÿ”’
Maintains crate::Wallet::pending_outputs by scanning both the blocks just below the guardianโ€™s local chain tip and its mempool.

Type Aliasesยง

BlockCache ๐Ÿ”’
Filtered receive outputs of the blocks in the pending window, keyed by height and tagged with the hash they were derived from.
MempoolCache ๐Ÿ”’
Filtered receive outputs of the transactions currently in the mempool.