Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 6 additions & 9 deletions common/src/snapshot/streaming_snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ impl StreamingSnapshotParser {
if utxo_count.is_multiple_of(1000000) {
let buffer_usage = buffer.len();
info!(
" Streamed {} UTXOs, buffer: {} MB, max entry: {} bytes",
"Streamed {} UTXOs, buffer: {} MB, max entry: {} bytes",
utxo_count,
buffer_usage / 1024 / 1024,
max_single_entry_size
Expand Down Expand Up @@ -1625,20 +1625,17 @@ impl StreamingSnapshotParser {
}
}

info!(" 🎯 STREAMING RESULTS:");
info!(" UTXOs processed: {}", utxo_count);
info!("Streaming results:");
info!(" UTXOs processed: {}", utxo_count);
info!(
" Total data streamed: {:.2} MB",
" Total data streamed: {:.2} MB",
total_bytes_processed as f64 / 1024.0 / 1024.0
);
info!(
" Peak buffer usage: {} MB (vs 2.1GB before!)",
" Peak buffer usage: {} MB",
PARSE_BUFFER_SIZE / 1024 / 1024
);
info!(
" • Largest single entry: {} bytes",
max_single_entry_size
);
info!(" Largest single entry: {} bytes", max_single_entry_size);

Ok(utxo_count)
}
Expand Down
7 changes: 7 additions & 0 deletions modules/snapshot_bootstrapper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ anyhow = { workspace = true }
config = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.132"
async-compression = { version = "0.4.32", features = ["tokio", "gzip"] }
futures-util = "0.3"
reqwest = "0.12"
thiserror = "2.0.17"
tokio-util = { version = "0.7", features = ["io"] }

[lib]
path = "src/snapshot_bootstrapper.rs"
Loading