提交 f3ea1d61 编写于 作者: A arhag

fix replay with --disable-replay-opts

上级 df2b72b8
......@@ -275,9 +275,10 @@ struct controller_impl {
std::cerr<< "\n";
ilog( "${n} blocks replayed", ("n", head->block_num) );
// the irreverible log is played without undo sessions enabled, so we need to sync the
// if the irreverible log is played without undo sessions enabled, we need to sync the
// revision ordinal to the appropriate expected value here.
db.set_revision(head->block_num);
if( self.skip_db_sessions( controller::block_status::irreversible ) )
db.set_revision(head->block_num);
int rev = 0;
while( auto obj = reversible_blocks.find<reversible_block_object,by_num>(head->block_num+1) ) {
......@@ -1051,7 +1052,7 @@ struct controller_impl {
// on replay irreversible is not emitted by fork database, so emit it explicitly here
if( s == controller::block_status::irreversible )
emit( self.irreversible_block, new_header_state );
} FC_LOG_AND_RETHROW( )
}
......
Subproject commit 9bfe5043f5484e00f89387091e9b5beb90b88c62
Subproject commit bcd8ba5d05f7354590e7496da628acaf400667d5
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册