diff --git a/app/modules/prover/lib/blockGenerator.ts b/app/modules/prover/lib/blockGenerator.ts
index 061fc384fc671403b650cfd193a937cb4934db41..6cd68b0cb2ceb659095c1ae4ee5f2450048c1f28 100644
--- a/app/modules/prover/lib/blockGenerator.ts
+++ b/app/modules/prover/lib/blockGenerator.ts
@@ -644,7 +644,7 @@ export class BlockGenerator {
       transactions.forEach((tx:any) => {
         const txDTO = TransactionDTO.fromJSONObject(tx)
         const txLen = txDTO.getLen()
-        if (txLen <= CommonConstants.MAXIMUM_LEN_OF_COMPACT_TX && blockLen + txLen <= maxLenOfBlock && tx.version == CommonConstants.TRANSACTION_VERSION) {
+        if (txLen <= CommonConstants.MAXIMUM_LEN_OF_COMPACT_TX && blockLen + txLen < maxLenOfBlock && tx.version == CommonConstants.TRANSACTION_VERSION) {
           block.transactions.push(txDTO);
         }
         blockLen += txLen;