Module zebra_state::service::finalized_state::disk_format::upgrade::cache_genesis_roots
source · Expand description
Updating the genesis note commitment trees to cache their roots.
This reduces CPU usage when the genesis tree roots are used for transaction validation. Since mempool transactions are cheap to create, this is a potential remote denial of service.
Functions§
- Detailed check that all trees have cached roots.
- Quickly check that the genesis trees and sprout tip tree have cached roots.
- Runs disk format upgrade for changing the sprout and history tree key types.