Add a message for download progress
This commit is contained in:
parent
946bff4c0e
commit
5dcee078be
|
@ -316,6 +316,7 @@ impl Daemon {
|
|||
let chunk_size = 100_000;
|
||||
let mut result = vec![];
|
||||
let mut bar = util::new_progress_bar(all_heights.len());
|
||||
bar.message("Headers: ");
|
||||
let null_hash = Sha256dHash::default();
|
||||
for heights in all_heights.chunks(chunk_size) {
|
||||
let mut headers = self.getblockheaders(&heights)?;
|
||||
|
|
|
@ -287,6 +287,7 @@ impl Index {
|
|||
|
||||
let mut buf = BufferedWriter::new(store);
|
||||
let mut bar = util::new_progress_bar(new_headers.len());
|
||||
bar.message("Blocks: ");
|
||||
let mut txns_count = 0;
|
||||
for header in &new_headers {
|
||||
// Download a new block
|
||||
|
|
Loading…
Reference in New Issue
Block a user