forked from brummer-simon/reachable
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f55ce36
commit 259676b
Showing
3 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
use mempool_space::blocking; | ||
use std::env; | ||
|
||
fn main() { | ||
{ | ||
let args: Vec<String> = env::args().collect(); | ||
let mut address = &String::from(""); | ||
if args.len() > 1 { | ||
address = &args[1]; | ||
} else { | ||
// silence is golden | ||
std::process::exit(0); | ||
} | ||
let _res = blocking(&format!("/address/{}", &address)); | ||
let _res = blocking(&format!("/blocks/tip/hash")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters