MCPcopy Create free account
hub / github.com/BitVM/BitVM / get_lock_scripts_cache_path

Function get_lock_scripts_cache_path

bridge/src/connectors/connector_c.rs:65–70  ·  view source on GitHub ↗
(cache_id: &str)

Source from the content-addressed store, hash-verified

63const MAX_CACHE_FILES: u32 = 90; //~1GB in total, based on lock scripts cache being 11MB each
64
65fn get_lock_scripts_cache_path(cache_id: &str) -> PathBuf {
66 let lock_scripts_file_name = format!("{LOCK_SCRIPTS_FILE_PREFIX}{}.bin", cache_id);
67 Path::new(BRIDGE_DATA_DIRECTORY_NAME)
68 .join(CACHE_DIRECTORY_NAME)
69 .join(lock_scripts_file_name)
70}
71
72#[derive(Serialize, Deserialize, Eq, PartialEq, Clone)]
73pub struct ConnectorC {

Callers 1

lock_scripts_bytesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected