mirror of
https://github.com/romanz/electrs.git
synced 2025-02-24 15:02:21 +01:00
Move logging statement from headers' download loop
This commit is contained in:
parent
838e212ce1
commit
c317c6f7ad
1 changed files with 1 additions and 1 deletions
|
@ -495,10 +495,10 @@ impl Daemon {
|
|||
}
|
||||
let header = self.getblockheader(&blockhash)
|
||||
.chain_err(|| format!("failed to get {} header", blockhash))?;
|
||||
trace!("downloaded {} block header", blockhash);
|
||||
new_headers.push(header);
|
||||
blockhash = header.prev_blockhash;
|
||||
}
|
||||
trace!("downloaded {} block headers", new_headers.len());
|
||||
new_headers.reverse(); // so the tip is the last vector entry
|
||||
Ok(new_headers)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue