mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-26 07:39:59 -07:00
20 lines
388 B
Rust
20 lines
388 B
Rust
use brk_core::Date;
|
|
use brk_fetcher::Fetcher;
|
|
|
|
fn main() -> color_eyre::Result<()> {
|
|
color_eyre::install()?;
|
|
|
|
brk_logger::init(None);
|
|
|
|
let mut fetcher = Fetcher::import(None)?;
|
|
|
|
dbg!(fetcher.get_date(Date::new(2025, 6, 5))?);
|
|
dbg!(fetcher.get_height(
|
|
899911_u32.into(),
|
|
1749133056_u32.into(),
|
|
Some(1749132055_u32.into())
|
|
)?);
|
|
|
|
Ok(())
|
|
}
|