Skip to content

Commit 0b7cc7e

Browse files
committed
reject oversized transactions
1 parent a75531e commit 0b7cc7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/chain/db_block.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ bool database::_push_block(const signed_block& new_block)
223223
*/
224224
processed_transaction database::push_transaction( const precomputable_transaction& trx, uint32_t skip )
225225
{ try {
226+
// see https://github.com/bitshares/bitshares-core/issues/1573
227+
FC_ASSERT( fc::raw::pack_size( trx ) < (1024 * 1024), "Transaction exceeds maximum transaction size." );
226228
processed_transaction result;
227229
detail::with_skip_flags( *this, skip, [&]()
228230
{

0 commit comments

Comments
 (0)