Skip to content
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 finalization for offchain mode. #831

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

piohei
Copy link
Contributor

@piohei piohei commented Dec 2, 2024

Motivation

Solution

PR Checklist

  • Added Tests
  • Added Documentation

@piohei piohei requested a review from a team as a code owner December 2, 2024 08:36
src/identity/processor.rs Outdated Show resolved Hide resolved
@piohei piohei force-pushed the piohei/fix_finalizing_roots_offchain branch from bae12d3 to 15fa087 Compare December 2, 2024 09:57
@piohei piohei force-pushed the piohei/fix_finalizing_roots_offchain branch from 15fa087 to c0ca8d4 Compare December 2, 2024 10:34
// It happens sometimes as we do not have atomic operation for database and tree
// insertion.
// TODO: check if this is still possible after HA being done
tx.commit().await?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't rollback be more fitting here? Since we intend for nothing to happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather leave commit here as there was no error at all.

@piohei piohei merged commit a174239 into main Dec 2, 2024
5 checks passed
@piohei piohei deleted the piohei/fix_finalizing_roots_offchain branch December 2, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants