Skip to content

Commit

Permalink
Comment panic line (#1725)
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview authored Dec 27, 2023
1 parent 33d59d1 commit b6444cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions go/enclave/components/batch_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (executor *batchExecutor) ComputeBatch(context *BatchExecutionContext, fail
if err != nil {
return nil, fmt.Errorf("could not create stateDB. Cause: %w", err)
}
snap := stateDB.Snapshot()
// snap := stateDB.Snapshot()

var messages common.CrossChainMessages
var transfers common.ValueTransferEvents
Expand Down Expand Up @@ -222,8 +222,9 @@ func (executor *batchExecutor) ComputeBatch(context *BatchExecutionContext, fail
len(crossChainTransactions) == 0 &&
len(messages) == 0 &&
len(transfers) == 0 {
// revert any unexpected mutation to the statedb
stateDB.RevertToSnapshot(snap)
// todo review why this is failing deployment with "panic: revision id 0 cannot be reverted" - https://github.com/ten-protocol/ten-internal/issues/2654
//// revert any unexpected mutation to the statedb
//stateDB.RevertToSnapshot(snap)
return nil, ErrNoTransactionsToProcess
}

Expand Down

0 comments on commit b6444cf

Please sign in to comment.