diff --git a/app/modules/prover/lib/blockGenerator.ts b/app/modules/prover/lib/blockGenerator.ts index 55e9161f772bb23f7060d96a0218a6a442c448aa..ce2ebed4730f3a83b3cfff8f216e77c36765f3e8 100644 --- a/app/modules/prover/lib/blockGenerator.ts +++ b/app/modules/prover/lib/blockGenerator.ts @@ -653,7 +653,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;