Skip to content

Commit

Permalink
Fixed immediate batch block bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Sep 20, 2023
1 parent 7b1d6f2 commit 0470513
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/enclave/components/batch_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (executor *batchExecutor) ComputeBatch(context *BatchExecutionContext) (*Co
// we need to copy the batch to reset the internal hash cache
copyBatch := *batch
copyBatch.Header.Root = stateDB.IntermediateRoot(false)
copyBatch.Transactions = append(successfulTxs, freeTransactions...)
copyBatch.Transactions = append(transactionsToProcess, freeTransactions...)
copyBatch.ResetHash()

if err = executor.populateOutboundCrossChainData(&copyBatch, block, txReceipts); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go/enclave/evm/evm_facade.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func executeTransaction(
header.MixDigest = before
if err != nil {
s.RevertToSnapshot(snap)
return nil, err
return receipt, err
}

return receipt, nil
Expand Down

0 comments on commit 0470513

Please sign in to comment.