mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 06:39:58 -07:00
16 lines
456 B
Rust
16 lines
456 B
Rust
use std::path::Path;
|
|
|
|
use brk_computer::PriceToAmount;
|
|
use brk_error::Result;
|
|
use brk_types::Height;
|
|
|
|
pub fn main() -> Result<()> {
|
|
let path = Path::new(&std::env::var("HOME").unwrap())
|
|
.join(".brk")
|
|
.join("computed/stateful/states");
|
|
let mut price_to_amount = PriceToAmount::create(&path, "addrs_above_1btc_under_10btc");
|
|
dbg!(price_to_amount.import_at_or_before(Height::new(890000))?);
|
|
dbg!(price_to_amount);
|
|
Ok(())
|
|
}
|