Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Calculate hash before ilog so timing of log is correct.
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Oct 26, 2018
1 parent fa8dc3f commit 9b3aaa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ struct controller_impl {
}

if( snapshot ) {
ilog( "database initialized with hash: ${hash}", ("hash", calculate_integrity_hash()) );
const auto hash = calculate_integrity_hash();
ilog( "database initialized with hash: ${hash}", ("hash", hash) );
}

}
Expand Down

0 comments on commit 9b3aaa2

Please sign in to comment.