db_block.cpp: Respect skip_block_size_check when generating block

This commit is contained in:
theoreticalbts 2015-10-08 15:00:18 -04:00
parent 3f00bd81b9
commit 5b4398fb44

View file

@ -377,7 +377,10 @@ signed_block database::_generate_block(
pending_block.sign( block_signing_private_key );
// TODO: Move this to _push_block() so session is restored.
FC_ASSERT( fc::raw::pack_size(pending_block) <= get_global_properties().parameters.maximum_block_size );
if( !(skip & skip_block_size_check) )
{
FC_ASSERT( fc::raw::pack_size(pending_block) <= get_global_properties().parameters.maximum_block_size );
}
push_block( pending_block, skip );