MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / handle_proof_cache_command

Function handle_proof_cache_command

fendermint/app/src/cmd/proof_cache.rs:16–26  ·  view source on GitHub ↗
(args: &ProofCacheArgs)

Source from the content-addressed store, hash-verified

14}
15
16fn handle_proof_cache_command(args: &ProofCacheArgs) -> anyhow::Result<()> {
17 match &args.command {
18 ProofCacheCommands::Inspect { db_path } => inspect_cache(db_path),
19 ProofCacheCommands::Stats { db_path } => show_stats(db_path),
20 ProofCacheCommands::Get {
21 db_path,
22 instance_id,
23 } => get_proof(db_path, *instance_id),
24 ProofCacheCommands::Clear { db_path } => clear_cache(db_path),
25 }
26}
27
28fn inspect_cache(db_path: &PathBuf) -> anyhow::Result<()> {
29 println!("=== Proof Cache Inspection ===");

Callers

nothing calls this directly

Calls 4

clear_cacheFunction · 0.85
inspect_cacheFunction · 0.70
show_statsFunction · 0.70
get_proofFunction · 0.70

Tested by

no test coverage detected