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ยง
- Pending
Cache ๐ - State the pending receive scanner carries between runs.
Enumsยง
- Mempool
Scan ๐ - 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
txthat 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_budgetisNonebecause the mempool scan is turned off, the mempool. - spawn_
pending_ ๐receive_ scanner - Maintains
crate::Wallet::pending_outputsby scanning both the blocks just below the guardianโs local chain tip and its mempool.
Type Aliasesยง
- Block
Cache ๐ - Filtered receive outputs of the blocks in the pending window, keyed by height and tagged with the hash they were derived from.
- Mempool
Cache ๐ - Filtered receive outputs of the transactions currently in the mempool.