computer: stateful snapshot

This commit is contained in:
nym21
2025-12-18 15:32:47 +01:00
parent a86085c2db
commit c5e912593a
51 changed files with 532 additions and 575 deletions
@@ -1,15 +0,0 @@
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(())
}