-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Testnet start #1725
Fix Testnet start #1725
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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 | ||||||
|
@@ -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 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment regarding the deployment failure should include a reference to the issue tracker for easier follow-up. + // TODO: Review the cause of "panic: revision id 0 cannot be reverted" and resolve it according to issue #2654. Committable suggestion
Suggested change
|
||||||
//// revert any unexpected mutation to the statedb | ||||||
//stateDB.RevertToSnapshot(snap) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disabling the revert state functionality may have implications for the state consistency. Ensure that the risks are understood and that there is a plan to re-enable this functionality. - //stateDB.RevertToSnapshot(snap)
+ // FIXME: Re-enable stateDB.RevertToSnapshot(snap) once the underlying issue is resolved. Committable suggestion
Suggested change
|
||||||
return nil, ErrNoTransactionsToProcess | ||||||
} | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented out code can lead to confusion and should be accompanied by a clear explanation or a linked issue for context.
Committable suggestion