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

Make tx.wait() more reliable by increasing block length check to default of 20 blocks #1239

Merged
merged 4 commits into from
Nov 14, 2023

Conversation

MartinMinkov
Copy link
Contributor

Summary

This update introduces improvements to tx.wait(), addressing reliability issues in transaction inclusion checking within blocks. It includes a fix by checking for the last 20 blocks of a transaction inclusion instead of 1. Additionally, the number of blocks to check for fetchLatestBlockZkappStatus is now customizable.

Copy link
Member

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

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

Nice @MartinMinkov, I really appreciate that you're looking after the zkApp DX aspects of o1js

@MartinMinkov MartinMinkov merged commit 4d98e5a into main Nov 14, 2023
13 checks passed
@MartinMinkov MartinMinkov deleted the feat/fix-network-wait branch November 14, 2023 16:01
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.

tx.wait() fails to return after a transaction is included in the block or timeout too early
2 participants