Skip to content

Commit

Permalink
Merge pull request #936 from AntelopeIO/GH-596-fork-db-3.2
Browse files Browse the repository at this point in the history
[3.2] forkdb reset in replay since blocks are signaled
  • Loading branch information
heifner authored Mar 31, 2023
2 parents 4359bc0 + 51c4bea commit d9a4772
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,13 @@ struct controller_impl {
}

void replay(std::function<bool()> check_shutdown) {
if( !blog.head() && !fork_db.root() ) {
auto blog_head = blog.head();
if( !fork_db.root() ) {
fork_db.reset( *head );
return;
if (!blog_head)
return;
}

auto blog_head = blog.head();
replaying = true;
auto start_block_num = head->block_num + 1;
auto start = fc::time_point::now();
Expand Down

0 comments on commit d9a4772

Please sign in to comment.