fixed network db_field

This commit is contained in:
bitcoinafterlife 2025-07-15 15:18:37 -04:00
parent 9e89ae884e
commit 36edfcd073
Signed by: bitcoinafterlife
GPG Key ID: FE756706E833E0D1

View File

@ -147,15 +147,11 @@ fn get_client_from_username(url: &String, network: &NetworkParams) -> Result<(Cl
fn get_client_from_cookie(url: &String,network: &NetworkParams)->Result<(Client,GetBlockchainInfoResult),Box<dyn StdError>>{
match get_cookie_filename(network){
Ok(cookie) => {
dbg!(&cookie);
dbg!(&url);
match Client::new(&url[..], Auth::CookieFile(cookie.into())) {
Ok(client) => {
dbg!(&client);
match client.get_blockchain_info(){
Ok(bcinfo) => Ok((client,bcinfo)),
Err(err) => {
println!("si rompe qua");
Err(err.into())
}
}