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
3f78e08
commit fe19794
Showing
3 changed files
with
37 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use mempool_space::blocking; | ||
use std::env; | ||
|
||
fn main() { | ||
{ | ||
let args: Vec<String> = env::args().collect(); | ||
let mut timestamp = &String::from(""); | ||
if args.len() > 1 { | ||
timestamp = &args[1]; | ||
} else { | ||
// silence is golden | ||
std::process::exit(0); | ||
} | ||
let _res = blocking(&format!("v1/mining/blocks/timestamp/{}", ×tamp)); | ||
} | ||
} |
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