From 0d5d1900b9fe10da0ea69a8d645f892c09418573 Mon Sep 17 00:00:00 2001 From: Pedro Gomes Date: Thu, 9 Feb 2023 11:45:05 +0000 Subject: [PATCH] Update enclave.go --- go/enclave/enclave.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/enclave/enclave.go b/go/enclave/enclave.go index ff19906187..5142e2144b 100644 --- a/go/enclave/enclave.go +++ b/go/enclave/enclave.go @@ -248,8 +248,8 @@ func (e *enclaveImpl) SubmitL1Block(block types.Block, receipts types.Receipts, // We remove any transactions considered immune to re-orgs from the mempool. if blockSubmissionResponse.ProducedBatch != nil { err = e.removeOldMempoolTxs(blockSubmissionResponse.ProducedBatch.Header) - e.logger.Error("removeOldMempoolTxs fail", "blk", block.Number(), "blkHash", block.Hash(), log.ErrKey, err) if err != nil { + e.logger.Error("removeOldMempoolTxs fail", "blk", block.Number(), "blkHash", block.Hash(), log.ErrKey, err) return nil, e.rejectBlockErr(fmt.Errorf("could not remove transactions from mempool. Cause: %w", err)) } }