提交 1596467d 编写于 作者: D Daniel Larimer

Potential solution to #2641

上级 2f2853db
......@@ -894,9 +894,7 @@ void controller::abort_block() {
void controller::push_block( const signed_block_ptr& b ) {
my->push_block( b );
if( !my->replaying ) {
log_irreversible_blocks();
}
log_irreversible_blocks();
}
void controller::push_confirmation( const header_confirmation& c ) {
......@@ -991,7 +989,11 @@ void controller::log_irreversible_blocks() {
auto blk = my->fork_db.get_block_in_current_chain_by_num( lhead + 1 );
FC_ASSERT( blk, "unable to find block state", ("block_num",lhead+1));
irreversible_block( blk );
my->blog.append( blk->block );
if( !my->replaying ) {
my->blog.append( blk->block );
}
my->fork_db.prune( blk );
my->db.commit( lhead );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册