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

Commit 979af3d

Browse files
EighteenZiniklasad1
authored andcommitted
2 tiny modification on snapshot (#8601)
* Some tiny modifications. 1. fix some typo in the comment. 2. sort the order of methods in 'impl state::Backend for StateDB` * Remove the clone of code_cache, as it has been done in clone_basic. * remove From::from. It seems not necessary. * change mode: remove rust files' executable mode. * 2 tiny modifications on snapshot.
1 parent 57d1f2b commit 979af3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ethcore/src/snapshot/consensus/work.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl Rebuilder for PowRebuilder {
229229
let item_count = rlp.item_count()?;
230230
let num_blocks = (item_count - 3) as u64;
231231

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

234234
if self.fed_blocks + num_blocks > self.snapshot_blocks {
235235
return Err(Error::TooManyBlocks(self.snapshot_blocks, self.fed_blocks + num_blocks).into())

ethcore/src/snapshot/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl Restoration {
176176
// verify final state root.
177177
let root = self.state.state_root();
178178
if root != self.final_state_root {
179-
warn!("Final restored state has wrong state root: expected {:?}, got {:?}", root, self.final_state_root);
179+
warn!("Final restored state has wrong state root: expected {:?}, got {:?}", self.final_state_root, root);
180180
return Err(TrieError::InvalidStateRoot(root).into());
181181
}
182182

0 commit comments

Comments
 (0)