Skip to content

Commit

Permalink
Extend information logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
afalaleev committed Apr 12, 2018
1 parent cd2ec74 commit 971b049
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/chain/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ namespace golos {
wlog("Done opening database, elapsed time ${t} sec", ("t", double((end - start).count()) / 1000000.0));

if (chainbase_flags & chainbase::database::read_write) {
start = fc::time_point::now();
wlog("Start opening block log. Please wait, don't break application...");

if (!find<dynamic_global_property_object>()) {
with_strong_write_lock([&]() {
init_genesis(initial_supply);
Expand All @@ -132,6 +135,8 @@ namespace golos {

_fork_db.start_block(*head_block);
}
end = fc::time_point::now();
wlog("Done opening block log, elapsed time ${t} sec", ("t", double((end - start).count()) / 1000000.0));
}

with_strong_read_lock([&]() {
Expand Down

0 comments on commit 971b049

Please sign in to comment.