Merge pull request #228 from ethcore/reversed-trace

Reversed hash in trace
This commit is contained in:
Svyatoslav Nikolsky 2016-11-30 15:33:33 +03:00 committed by GitHub
commit 56196dc619
2 changed files with 2 additions and 2 deletions

View File

@ -579,7 +579,7 @@ impl BlockStapler for Storage {
// write accumulated transactions meta
try!(context.apply(&self.database));
trace!(target: "db", "Best block now ({}, {})", &new_best_hash, &new_best_number);
trace!(target: "db", "Best block now ({}, {})", &new_best_hash.to_reversed_str(), &new_best_number);
// updating locked best block
*best_block = Some(BestBlock { hash: new_best_hash, number: new_best_number });

View File

@ -30,7 +30,7 @@ impl UpdateContext {
try!(db.write(self.db_transaction));
trace!("Applied transaction for block {:?}", &self.target);
trace!("Applied transaction for block {:?}", &self.target.to_reversed_str());
Ok(())
}