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

read pending block not latest #465

Merged
merged 4 commits into from
Aug 1, 2024
Merged

Conversation

augustbleeds
Copy link
Collaborator

@augustbleeds augustbleeds commented Jun 13, 2024

the pending block contains finalized txs so it should be used for the most recent data

if you read from the pending block, there's a problem where the block number on chain is actually not queryable via the rpc because the block hasn't been assigned a block number since it's in the pending state. a fix has been made to account for this edge case

Copy link
Collaborator

@archseer archseer left a comment

Choose a reason for hiding this comment

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

Let's fix the tests, likely needs an update of the devnet/RPC version

@augustbleeds
Copy link
Collaborator Author

Let's fix the tests, likely needs an update of the devnet/RPC version

thanks, it was missing a mocked response

@augustbleeds augustbleeds merged commit 94dc063 into develop Aug 1, 2024
21 checks passed
@augustbleeds augustbleeds deleted the augustus.read-pending-block branch August 1, 2024 17:16
augustbleeds added a commit that referenced this pull request Aug 1, 2024
augustbleeds added a commit that referenced this pull request Aug 1, 2024
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