Skip to content

Commit

Permalink
Log config error in jd-client.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbesraa committed Jun 26, 2024
1 parent 569f306 commit 9cfaebd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions roles/jd-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ async fn main() {

let proxy_config = match process_cli_args() {
Ok(p) => p,
Err(_) => return,
Err(e) => {
error!("Failed to read config file: {}", e);
return;
}
};

loop {
Expand Down Expand Up @@ -205,7 +208,13 @@ async fn initialize_jd_as_solo_miner(
task_collector: Arc<Mutex<Vec<AbortHandle>>>,
timeout: Duration,
) {
let proxy_config = process_cli_args().unwrap();
let proxy_config = match process_cli_args() {
Ok(p) => p,
Err(e) => {
error!("Failed to read config file: {}", e);
return;
}
};
let miner_tx_out = lib::proxy_config::get_coinbase_output(&proxy_config).unwrap();

// When Downstream receive a share that meets bitcoin target it transformit in a
Expand Down

0 comments on commit 9cfaebd

Please sign in to comment.