Skip to content

Commit 9855800

Browse files
committed
#845: Add brackets to else
1 parent 17b7986 commit 9855800

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/koinos/chain/controller.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ apply_block_result controller_impl::apply_block( const protocol::block& block, c
323323
return {}; // Block is current LIB
324324
}
325325
else
326+
{
326327
KOINOS_ASSERT( parent_node->is_finalized(), unknown_previous_block_exception, "unknown previous block" );
328+
}
327329

328330
bool live = block.header().timestamp() > std::chrono::duration_cast< std::chrono::milliseconds >(
329331
( opts.application_time - live_delta ).time_since_epoch() )

0 commit comments

Comments
 (0)