mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-08-07 23:13:12 +00:00
absolute binary paths
This commit is contained in:
parent
5ccbbb2959
commit
e0970968c9
@ -40,15 +40,14 @@ fn run_ethereum_prove(
|
||||
block_number + batch_size - 1
|
||||
);
|
||||
|
||||
let mut binary_path = if let Some(dir) = &zeth_binary_dir {
|
||||
PathBuf::from(dir)
|
||||
let binary_path = if let Some(dir) = &zeth_binary_dir {
|
||||
let mut path = PathBuf::from(dir);
|
||||
path.push("zeth-ethereum");
|
||||
path
|
||||
} else {
|
||||
debug!("No binary directory provided, trying current directory");
|
||||
std::env::current_dir().map_err(|e| format!("Failed to get current directory: {}", e))?
|
||||
return Err("No binary directory provided".to_string());
|
||||
};
|
||||
|
||||
binary_path.push("zeth-ethereum");
|
||||
|
||||
if !binary_path.exists() {
|
||||
return Err(format!("Binary not found at: {}", binary_path.display()));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user