From acda7706491f8b21b4cdac60f49a149a02e96c88 Mon Sep 17 00:00:00 2001 From: twosatsmaxi <112330467+twosatsmaxi@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:03:36 +0530 Subject: [PATCH 1/3] Better error message when bitcoind doesn't start --- src/subcommand/env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subcommand/env.rs b/src/subcommand/env.rs index 9e2a4058f3..f314914cb0 100644 --- a/src/subcommand/env.rs +++ b/src/subcommand/env.rs @@ -67,7 +67,7 @@ rpcport={bitcoind_port} Command::new("bitcoind") .arg(format!("-conf={}", absolute.join("bitcoin.conf").display())) .stdout(Stdio::null()) - .spawn()?, + .spawn().expect("failed to start bitcoind")?, ); loop { From 8e4a8698f2a6f56b1fa07670debc2607bd81bb29 Mon Sep 17 00:00:00 2001 From: twosatsmaxi <112330467+twosatsmaxi@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:55:11 +0530 Subject: [PATCH 2/3] lint --- src/subcommand/env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subcommand/env.rs b/src/subcommand/env.rs index f314914cb0..068019d5e3 100644 --- a/src/subcommand/env.rs +++ b/src/subcommand/env.rs @@ -67,7 +67,7 @@ rpcport={bitcoind_port} Command::new("bitcoind") .arg(format!("-conf={}", absolute.join("bitcoin.conf").display())) .stdout(Stdio::null()) - .spawn().expect("failed to start bitcoind")?, + .spawn().expect("failed to start bitcoind"), ); loop { From 549e62be1b41215cf9e3f019a240a2c2107f27da Mon Sep 17 00:00:00 2001 From: twosatsmaxi <112330467+twosatsmaxi@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:04:06 +0530 Subject: [PATCH 3/3] lint fix 2 --- src/subcommand/env.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/subcommand/env.rs b/src/subcommand/env.rs index 068019d5e3..4c692bfb43 100644 --- a/src/subcommand/env.rs +++ b/src/subcommand/env.rs @@ -67,7 +67,8 @@ rpcport={bitcoind_port} Command::new("bitcoind") .arg(format!("-conf={}", absolute.join("bitcoin.conf").display())) .stdout(Stdio::null()) - .spawn().expect("failed to start bitcoind"), + .spawn() + .expect("failed to start bitcoind"), ); loop {