2018-08-15 07:32:13 +00:00
|
|
|
extern crate electrs;
|
|
|
|
|
2018-08-15 08:08:52 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
2018-08-15 07:32:13 +00:00
|
|
|
|
2018-08-15 08:08:52 +00:00
|
|
|
use electrs::config::Config;
|
|
|
|
use electrs::notify;
|
2018-08-15 07:32:13 +00:00
|
|
|
|
|
|
|
fn main() {
|
2018-08-15 08:08:52 +00:00
|
|
|
let _ = Config::from_args();
|
|
|
|
let rx = notify::run().into_receiver();
|
2018-08-15 14:05:12 +00:00
|
|
|
for blockhash in rx.iter() {
|
2018-08-15 14:09:53 +00:00
|
|
|
info!("block {}", blockhash.be_hex_string())
|
2018-08-15 08:08:52 +00:00
|
|
|
}
|
2018-08-15 07:32:13 +00:00
|
|
|
}
|