mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-29 21:52:09 -07:00
rpc: init wrapper crate + global: snapshot
This commit is contained in:
@@ -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 }
|
||||
@@ -0,0 +1 @@
|
||||
# brk_iterator
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
fn main() {}
|
||||
@@ -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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user