mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 18:10:51 +01:00
16 lines
289 B
Rust
16 lines
289 B
Rust
extern crate electrs;
|
|
|
|
#[macro_use]
|
|
extern crate log;
|
|
|
|
use electrs::config::Config;
|
|
use electrs::notify;
|
|
|
|
fn main() {
|
|
let _ = Config::from_args();
|
|
let rx = notify::run().into_receiver();
|
|
for blockhash in rx.iter() {
|
|
info!("block {}", blockhash.be_hex_string())
|
|
}
|
|
}
|