pub(super) const CACHE_CAPACITY: usize = 20_000;Expand description
The number of verified-bundle keys retained per cache.
Sized to hold several blocks of history plus a full mempool, so that a transaction gossiped well before the block that mines it is still remembered.
Each key is a 98-byte transaction ID, sighash and pool tag, held twice — once in the lookup set and once in the eviction queue — so a full cache costs about 5 MiB, and about 20 MiB across the three Orchard circuit eras and Sapling. Only the eras a node actually verifies pay it, because each cache is built with its verifier on first use.