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

Wait for chain state updates to report atomic tx as Accepted #525

Merged
merged 7 commits into from
Apr 24, 2024

Conversation

darioush
Copy link
Collaborator

@darioush darioush commented Apr 10, 2024

Why this should be merged

ava-labs/avalanchego#2853

How this works

Since chain state updates run asynchronously with VM block acceptance,
avoid returning [Accepted] until the chain state reaches the block
containing the atomic tx.

How this was tested

CI

@darioush darioush marked this pull request as ready for review April 10, 2024 21:59
@darioush darioush requested a review from ceyonur as a code owner April 10, 2024 21:59
@StephenButtolph
Copy link
Contributor

I'm not sure this would resolve the avalanchego issue unless we update GetAtomicTxStatus as well.

@darioush darioush merged commit d8fc2ce into master Apr 24, 2024
8 checks passed
@darioush darioush deleted the atomic-tx-check-chainstate branch April 24, 2024 18:33
oxbee pushed a commit to taurusgroup/coreth that referenced this pull request Nov 6, 2024
…s#525)

* Wait for chain state updates to report atomic tx as Accepted

* comment

* fix GetAtomicTxStatus

* smaller diff

* nit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants