Added max tx size check in push_transaction
This commit is contained in:
parent
6cbae49ad7
commit
b93101cd0f
1 changed files with 2 additions and 0 deletions
|
|
@ -286,6 +286,8 @@ bool database::_push_block(const signed_block& new_block)
|
|||
*/
|
||||
processed_transaction database::push_transaction( const signed_transaction& trx, uint32_t skip )
|
||||
{ try {
|
||||
// see https://github.com/bitshares/bitshares-core/issues/1573
|
||||
FC_ASSERT( fc::raw::pack_size( trx ) < (1024 * 1024), "Transaction exceeds maximum transaction size." );
|
||||
processed_transaction result;
|
||||
detail::with_skip_flags( *this, skip, [&]()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue