Skip to content

Commit

Permalink
More logging around log irreversible
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Apr 3, 2024
1 parent 94c0b34 commit 08ce170
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1411,8 +1411,10 @@ struct controller_impl {
auto it = v.begin();

for( auto bitr = branch.rbegin(); bitr != branch.rend() && should_process(*bitr); ++bitr ) {
dlog("apply irreversible block");
apply_irreversible_block(forkdb, *bitr);

dlog("emit irreversible_block");
emit( irreversible_block, std::tie((*bitr)->block, (*bitr)->id()) );

dlog("waiting on future");
Expand All @@ -1438,6 +1440,7 @@ struct controller_impl {
fork_db.switch_to(fork_database::in_use_t::savanna);
break;
}
dlog("end of irreversible loop");
}
} catch( std::exception& ) {
if( root_id != forkdb.root()->id() ) {
Expand Down

0 comments on commit 08ce170

Please sign in to comment.