Skip to content
Merged
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
3 changes: 0 additions & 3 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ spec = "config_spec.toml"

[[bin]]
name = "ibd"

[[bin]]
name = "bench"
55 changes: 0 additions & 55 deletions node/src/bin/bench.rs

This file was deleted.

9 changes: 5 additions & 4 deletions node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,17 +294,18 @@ pub fn get_blocks_for_range(
batch = next;
completed_batches += 1;
tracing::info!(
"[thread {task_id:2}]: requesting next batch. blocks downloaded: {}",
CHUNK_SIZE * completed_batches
"[thread {task_id:2}]: blocks downloaded: {}/{}",
CHUNK_SIZE * completed_batches,
stop_height,
);
let percent = (1.
- ((CHUNK_SIZE * jobs_lock.len()) as f32 / stop_height as f32))
* 100.0;
tracing::info!(
"[thread m]: {:.6}/{}; progress: {:.6}%",
"[thread m]: progress: {:.6}% ; blocks remaining: {}/{}",
percent,
CHUNK_SIZE * jobs_lock.len(),
stop_height,
percent,
);
let payload = InventoryPayload(
batch.iter().map(|hash| Inventory::Block(*hash)).collect(),
Expand Down