From 6995c7c8d1b69a4990c7782f6f62569bb1d2b747 Mon Sep 17 00:00:00 2001 From: Matt <98158711+BedrockSquirrel@users.noreply.github.com> Date: Thu, 14 Dec 2023 11:44:43 +0000 Subject: [PATCH] Enclave: produce no batch if all tx failed (#1698) (#1700) --- go/enclave/components/batch_executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/enclave/components/batch_executor.go b/go/enclave/components/batch_executor.go index 82e804b625..226486461d 100644 --- a/go/enclave/components/batch_executor.go +++ b/go/enclave/components/batch_executor.go @@ -213,7 +213,7 @@ func (executor *batchExecutor) ComputeBatch(context *BatchExecutionContext, fail if failForEmptyBatch && len(txReceipts) == 0 && len(ccReceipts) == 0 && - len(transactionsToProcess) == 0 && + len(transactionsToProcess)-len(excludedTxs) == 0 && len(crossChainTransactions) == 0 && len(messages) == 0 && len(transfers) == 0 {