We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc6e4a1 commit 21c5e39Copy full SHA for 21c5e39
src/api.rs
@@ -10,7 +10,7 @@ use rand::Rng;
10
pub const URL: &[&str] = &[
11
"https://mempool.space/api",
12
"https://bitcoin.gob.sv/api",
13
- "https://mempool.sweetsats.io/api",
+ "https://mempool.sweetsats.io/api",
14
"http:://localhost", //TODO support local instance
15
];
16
@@ -95,7 +95,7 @@ pub fn blocking(api: &String) -> Result<&str, ascii::AsciiChar> {
95
//print!("api={:?}", api);
96
}
97
let call = format!("{}/{}", URL[rand::thread_rng().gen_range(0..2)], api);
98
- //println!("{}", call.clone());
+ //println!("{}", call.clone());
99
let mut body = ureq::get(&call)
100
.call()
101
.expect("blocking(api: &String) GET {URL[0..2]}/{api} OR GET {URL[0..2]}/v1/{api}")
0 commit comments