Skip to content

Commit 34c1b35

Browse files
authored
Merge pull request #58 from rustaceanrob/12-8-nodebin
Remove bench binary
2 parents a4b947f + 807612f commit 34c1b35

File tree

3 files changed

+5
-62
lines changed

3 files changed

+5
-62
lines changed

node/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,3 @@ spec = "config_spec.toml"
2323

2424
[[bin]]
2525
name = "ibd"
26-
27-
[[bin]]
28-
name = "bench"

node/src/bin/bench.rs

Lines changed: 0 additions & 55 deletions
This file was deleted.

node/src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,17 +294,18 @@ pub fn get_blocks_for_range(
294294
batch = next;
295295
completed_batches += 1;
296296
tracing::info!(
297-
"[thread {task_id:2}]: requesting next batch. blocks downloaded: {}",
298-
CHUNK_SIZE * completed_batches
297+
"[thread {task_id:2}]: blocks downloaded: {}/{}",
298+
CHUNK_SIZE * completed_batches,
299+
stop_height,
299300
);
300301
let percent = (1.
301302
- ((CHUNK_SIZE * jobs_lock.len()) as f32 / stop_height as f32))
302303
* 100.0;
303304
tracing::info!(
304-
"[thread m]: {:.6}/{}; progress: {:.6}%",
305+
"[thread m]: progress: {:.6}% ; blocks remaining: {}/{}",
306+
percent,
305307
CHUNK_SIZE * jobs_lock.len(),
306308
stop_height,
307-
percent,
308309
);
309310
let payload = InventoryPayload(
310311
batch.iter().map(|hash| Inventory::Block(*hash)).collect(),

0 commit comments

Comments
 (0)