global: one big snapshot

This commit is contained in:
nym21
2025-08-02 16:59:22 +02:00
parent aa8b47a3dd
commit f7aa9424db
252 changed files with 6283 additions and 5264 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ repository.workspace = true
[dependencies]
bitcoin = { workspace = true }
bitcoincore-rpc = { workspace = true }
brk_core = { workspace = true }
brk_structs = { workspace = true }
crossbeam = { version = "0.8.4", features = ["crossbeam-channel"] }
derive_deref = { workspace = true }
rayon = { workspace = true }
-6
View File
@@ -23,12 +23,6 @@
<a href="https://primal.net/p/nprofile1qqsfw5dacngjlahye34krvgz7u0yghhjgk7gxzl5ptm9v6n2y3sn03sqxu2e6">
<img src="https://img.shields.io/badge/nostr-purple?link=https%3A%2F%2Fprimal.net%2Fp%2Fnprofile1qqsfw5dacngjlahye34krvgz7u0yghhjgk7gxzl5ptm9v6n2y3sn03sqxu2e6" alt="Nostr" />
</a>
<a href="https://bsky.app/profile/bitcoinresearchkit.org">
<img src="https://img.shields.io/badge/bluesky-blue?link=https%3A%2F%2Fbsky.app%2Fprofile%2Fbitcoinresearchkit.org" alt="Bluesky" />
</a>
<a href="https://x.com/brkdotorg">
<img src="https://img.shields.io/badge/x.com-black" alt="X" />
</a>
</p>
A very fast and simple Rust library which reads raw block files (*blkXXXXX.dat*) from Bitcoin Core node and creates an iterator over all the requested blocks in sequential order (0, 1, 2, ...).
+5 -3
View File
@@ -1,12 +1,14 @@
use std::path::Path;
use bitcoincore_rpc::{Auth, Client};
use brk_core::{Height, default_bitcoin_path, default_brk_path};
use brk_parser::Parser;
use brk_structs::Height;
fn main() {
let i = std::time::Instant::now();
let bitcoin_dir = default_bitcoin_path();
let brk_dir = default_brk_path();
let bitcoin_dir = Path::new("").join("");
let brk_dir = Path::new("").join("");
let rpc = Box::leak(Box::new(
Client::new(
+5 -3
View File
@@ -1,12 +1,14 @@
use std::path::Path;
use bitcoincore_rpc::{Auth, Client};
use brk_core::{Height, OutputType, default_bitcoin_path, default_brk_path};
use brk_parser::Parser;
use brk_structs::{Height, OutputType};
fn main() {
let i = std::time::Instant::now();
let bitcoin_dir = default_bitcoin_path();
let brk_dir = default_brk_path();
let bitcoin_dir = Path::new("").join("");
let brk_dir = Path::new("").join("");
let rpc = Box::leak(Box::new(
Client::new(
+1 -1
View File
@@ -1,6 +1,6 @@
use std::path::Path;
use brk_core::Height;
use brk_structs::Height;
use serde::{Deserialize, Serialize};
use crate::path_to_modified_time;
+1 -1
View File
@@ -9,7 +9,7 @@ use bitcoin::{Block, BlockHash};
use bitcoincore_rpc::RpcApi;
use blk_index_to_blk_path::*;
use blk_recap::BlkRecap;
use brk_core::Height;
use brk_structs::Height;
use crossbeam::channel::{Receiver, bounded};
use rayon::prelude::*;