mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-01 01:50:00 -07:00
global: snapshot
This commit is contained in:
@@ -4,7 +4,11 @@ use crate::Config;
|
||||
|
||||
pub fn create_rpc(config: &Config) -> color_eyre::Result<Client> {
|
||||
Ok(Client::new(
|
||||
&format!("http://localhost:{}", config.rpcport.unwrap()),
|
||||
&format!(
|
||||
"http://{}:{}",
|
||||
config.rpcconnect.as_ref().unwrap(),
|
||||
config.rpcport.unwrap()
|
||||
),
|
||||
Auth::UserPass(
|
||||
config.rpcuser.clone().unwrap(),
|
||||
config.rpcpassword.clone().unwrap(),
|
||||
|
||||
Reference in New Issue
Block a user