From 438222a81a94277770e965439f92817a3f7b00dd Mon Sep 17 00:00:00 2001 From: Matt Curtis Date: Thu, 14 Dec 2023 10:06:05 +0000 Subject: [PATCH] Enclave: produce no batch if all tx failed --- 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 {