global: snapshot

This commit is contained in:
k
2024-09-29 20:39:51 +02:00
parent e3b44b0adb
commit 9d2c2f7945
23 changed files with 2694 additions and 2054 deletions

View File

@@ -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(),