Skip to content

Commit

Permalink
Merge pull request #1104 from obscuronet/otherview-patch-1
Browse files Browse the repository at this point in the history
Update enclave.go
  • Loading branch information
otherview authored Feb 9, 2023
2 parents 55f4fdc + 0d5d190 commit 6e145dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/enclave/enclave.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit 6e145dc

Please sign in to comment.