Commit 346e84e 1 parent b565770 commit 346e84e Copy full SHA for 346e84e
File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1701,8 +1701,6 @@ struct controller_impl {
1701
1701
}
1702
1702
1703
1703
void replay (startup_t startup) {
1704
- replaying = true ;
1705
-
1706
1704
bool replay_block_log_needed = should_replay_block_log ();
1707
1705
1708
1706
auto blog_head = blog.head ();
@@ -1840,8 +1838,6 @@ struct controller_impl {
1840
1838
};
1841
1839
fork_db.apply <void >(replay_fork_db);
1842
1840
1843
- replaying = false ;
1844
-
1845
1841
if ( except_ptr ) {
1846
1842
std::rethrow_exception ( except_ptr );
1847
1843
}
@@ -1990,6 +1986,7 @@ struct controller_impl {
1990
1986
ilog ( " chain database started with hash: ${hash}" , (" hash" , calculate_integrity_hash ()) );
1991
1987
okay_to_print_integrity_hash_on_stop = true ;
1992
1988
1989
+ fc::scoped_set_value r (replaying, true );
1993
1990
replay ( startup ); // replay any irreversible and reversible blocks ahead of current head
1994
1991
1995
1992
if ( check_shutdown () ) return ;
@@ -4354,6 +4351,7 @@ struct controller_impl {
4354
4351
}
4355
4352
}
4356
4353
4354
+ auto start = fc::time_point::now ();
4357
4355
for ( auto ritr = new_head_branch.rbegin (); ritr != new_head_branch.rend (); ++ritr ) {
4358
4356
auto except = std::exception_ptr{};
4359
4357
const auto & bsp = *ritr;
You can’t perform that action at this time.
0 commit comments