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

feat!: contract submission tx management #123

Merged
merged 26 commits into from
Oct 4, 2024

Conversation

MujkicA
Copy link
Contributor

@MujkicA MujkicA commented Sep 23, 2024

This PR deprecates the use of contract events to detect a successful block submission to the FuelChainState contract in favour of tracking the confirmations of the actual transaction. This is mainly done to avoid problems with potential L1 reorgs.

When run, the block_committer service will either create a new submission, update existing submissions or idle until the submission criteria is met.
The criteria for submitting a new block is that the last submission was finished (the corresponding tx succeeded or failed) and that the next epoch for posting was reached.

@MujkicA MujkicA self-assigned this Sep 23, 2024
@MujkicA MujkicA marked this pull request as ready for review October 4, 2024 16:17
hal3e
hal3e previously approved these changes Oct 4, 2024
Copy link
Contributor

@hal3e hal3e left a comment

Choose a reason for hiding this comment

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

LGTM left a small nit

packages/services/src/block_committer.rs Outdated Show resolved Hide resolved
Copy link
Member

@digorithm digorithm left a comment

Choose a reason for hiding this comment

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

LGTM -- excellent work!

@digorithm digorithm merged commit 0096691 into master Oct 4, 2024
9 checks passed
@digorithm digorithm deleted the feat/tx-manager-experimental branch October 4, 2024 21:41
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.

3 participants