rpc: init wrapper crate + global: snapshot

This commit is contained in:
nym21
2025-10-20 23:06:25 +02:00
parent 9b230d23dd
commit 4ffa2e3993
39 changed files with 1055 additions and 832 deletions

View File

@@ -0,0 +1,15 @@
[package]
name = "brk_iterator"
description = "A Bitcoin block iterator"
version.workspace = true
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
rust-version.workspace = true
build = "build.rs"
[dependencies]
bitcoin = { workspace = true }
brk_reader = { workspace = true }
brk_rpc = { workspace = true }

View File

@@ -0,0 +1 @@
# brk_iterator

View File

@@ -0,0 +1,8 @@
fn main() {
let profile = std::env::var("PROFILE").unwrap_or_default();
if profile == "release" {
println!("cargo:rustc-flag=-C");
println!("cargo:rustc-flag=target-cpu=native");
}
}

View File

@@ -0,0 +1 @@
fn main() {}

View File

@@ -0,0 +1,13 @@
use brk_rpc::Client;
pub struct BlockIterator {
client: Client,
}
impl BlockIterator {
pub fn new(client: Client) -> Self {
Self { client }
}
pub fn iter() {}
}