(cache_id: &str)
| 63 | const MAX_CACHE_FILES: u32 = 90; //~1GB in total, based on lock scripts cache being 11MB each |
| 64 | |
| 65 | fn 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)] |
| 73 | pub struct ConnectorC { |