diff --git a/.github/workflows/run-tests-on-push-to-main.yml b/.github/workflows/run-tests-on-push-to-main.yml index 671723d9..742b5784 100644 --- a/.github/workflows/run-tests-on-push-to-main.yml +++ b/.github/workflows/run-tests-on-push-to-main.yml @@ -35,6 +35,7 @@ jobs: --package acropolis_module_consensus \ --package acropolis_module_drdd_state \ --package acropolis_module_epochs_state \ + --package acropolis_module_genesis_bootstrapper \ --package acropolis_module_mithril_snapshot_fetcher \ --package acropolis_module_snapshot_bootstrapper \ --package acropolis_module_spdd_state \ diff --git a/modules/genesis_bootstrapper/build.rs b/modules/genesis_bootstrapper/build.rs index 165e4d7e..b4fac344 100644 --- a/modules/genesis_bootstrapper/build.rs +++ b/modules/genesis_bootstrapper/build.rs @@ -16,7 +16,7 @@ async fn fetch_bytes(client: &reqwest::Client, url: &str) -> Result> { if let Ok(file) = File::open(&path) { if let Ok(map) = from_reader::<_, HashMap>(file) { if let Some(path) = map.get(url.trim()) { - if let Ok(bytes) = fs::read(&Path::new(path).to_path_buf()) { + if let Ok(bytes) = fs::read(path) { return Ok(bytes); } } diff --git a/modules/genesis_bootstrapper/src/genesis_bootstrapper.rs b/modules/genesis_bootstrapper/src/genesis_bootstrapper.rs index 06b7fe88..9207c825 100644 --- a/modules/genesis_bootstrapper/src/genesis_bootstrapper.rs +++ b/modules/genesis_bootstrapper/src/genesis_bootstrapper.rs @@ -112,7 +112,7 @@ impl GenesisBootstrapper { } }; info!("Reading genesis for '{network_name}'"); - let shelley_genesis_hash = hash_genesis_bytes(&shelley_genesis); + let shelley_genesis_hash = hash_genesis_bytes(shelley_genesis); // Read genesis data let byron_genesis: ByronGenesisFile = serde_json::from_slice(byron_genesis)