Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

2 tiny modification on snapshot #8601

Merged
merged 11 commits into from
May 12, 2018
2 changes: 1 addition & 1 deletion ethcore/src/snapshot/consensus/work.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl Rebuilder for PowRebuilder {
let item_count = rlp.item_count()?;
let num_blocks = (item_count - 3) as u64;

trace!(target: "snapshot", "restoring block chunk with {} blocks.", item_count - 3);
trace!(target: "snapshot", "restoring block chunk with {} blocks.", num_blocks);

if self.fed_blocks + num_blocks > self.snapshot_blocks {
return Err(Error::TooManyBlocks(self.snapshot_blocks, self.fed_blocks + num_blocks).into())
Expand Down
2 changes: 1 addition & 1 deletion ethcore/src/snapshot/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl Restoration {
// verify final state root.
let root = self.state.state_root();
if root != self.final_state_root {
warn!("Final restored state has wrong state root: expected {:?}, got {:?}", root, self.final_state_root);
warn!("Final restored state has wrong state root: expected {:?}, got {:?}", self.final_state_root, root);
return Err(TrieError::InvalidStateRoot(root).into());
}

Expand Down