(config: &CliConfig)
| 317 | } |
| 318 | |
| 319 | fn create_geyser_plugin_config(config: &CliConfig) -> Result<()> { |
| 320 | let geyser_config = clockwork_plugin_utils::PluginConfig { |
| 321 | keypath: Some(config.signatory().to_owned()), |
| 322 | libpath: Some(config.geyser_lib().to_owned()), |
| 323 | ..Default::default() |
| 324 | }; |
| 325 | |
| 326 | let content = serde_json::to_string_pretty(&geyser_config) |
| 327 | .context("Unable to serialize PluginConfig to json")?; |
| 328 | let path = &config.geyser_config(); |
| 329 | fs::write(&path, content).context(format!("Unable to serialize PluginConfig to {}", path))?; |
| 330 | Ok(()) |
| 331 | } |
| 332 | |
| 333 | fn start_test_validator( |
| 334 | config: &CliConfig, |
no test coverage detected