diff --git a/libraries/chain/controller.cpp b/libraries/chain/controller.cpp index 6fc72c1e8bc..41e9d551728 100644 --- a/libraries/chain/controller.cpp +++ b/libraries/chain/controller.cpp @@ -386,7 +386,10 @@ struct controller_impl { db.undo(); } - ilog( "database initialized with hash: ${hash}", ("hash", calculate_integrity_hash())); + if( snapshot ) { + const auto hash = calculate_integrity_hash(); + ilog( "database initialized with hash: ${hash}", ("hash", hash) ); + } }