You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/config.rs
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ pub struct Config {
25
25
pubdaemon_dir:PathBuf,
26
26
pubblocks_dir:PathBuf,
27
27
pubdaemon_rpc_addr:SocketAddr,
28
+
pubdaemon_rpc_fallback_addr:Option<SocketAddr>,
28
29
pubdaemon_parallelism:usize,
29
30
pubcookie:Option<String>,
30
31
pubelectrum_rpc_addr:SocketAddr,
@@ -164,6 +165,12 @@ impl Config {
164
165
.help("Bitcoin daemon JSONRPC 'addr:port' to connect (default: 127.0.0.1:8332 for mainnet, 127.0.0.1:18332 for testnet3 and 127.0.0.1:48332 for testnet4 and 127.0.0.1:18443 for regtest)")
165
166
.takes_value(true),
166
167
)
168
+
.arg(
169
+
Arg::with_name("daemon_rpc_fallback_addr")
170
+
.long("daemon-rpc-fallback-addr")
171
+
.help("Fallback Bitcoin daemon JSONRPC 'addr:port' to connect if the primary fails")
0 commit comments