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

Allow use of "finalized" tag in rpc requests #2298

Merged
merged 3 commits into from
Apr 12, 2024

Conversation

piersy
Copy link
Contributor

@piersy piersy commented Apr 12, 2024

This PR allows the use of the "finalized" tag to retrieve blocks or
headers via the RPC. Using the "finalized" tag is equivalent to using
the "latest" tag because all blocks are final in celo.

This is to supprt integration with chainlink since their system depends
on retrieving finalized blocks.

Tested

There is a new e2e test that checks the "finalized" tag retrieves the same header as the "latest" tag.

This PR allows the use of the "finalized" tag to retrieve blocks or
headers via the RPC. Using the "finalized" tag is equivalent to using
the "latest" tag because all blocks are final in celo.

This is to supprt integration with chainlink since their system depends
on retrieving finalized blocks.
@piersy piersy requested a review from carterqw2 April 12, 2024 10:44
Copy link

github-actions bot commented Apr 12, 2024

Coverage from tests in ./e2e_test/... for ./consensus/istanbul/... at commit 6c57fae

coverage: 50.6% of statements across all listed packages
coverage:  63.2% of statements in consensus/istanbul
coverage:  42.7% of statements in consensus/istanbul/announce
coverage:  55.7% of statements in consensus/istanbul/backend
coverage:   0.0% of statements in consensus/istanbul/backend/backendtest
coverage:  24.3% of statements in consensus/istanbul/backend/internal/replica
coverage:  64.5% of statements in consensus/istanbul/core
coverage:  50.0% of statements in consensus/istanbul/db
coverage:   0.0% of statements in consensus/istanbul/proxy
coverage:  64.2% of statements in consensus/istanbul/uptime
coverage:  51.8% of statements in consensus/istanbul/validator
coverage:  79.2% of statements in consensus/istanbul/validator/random

Copy link

github-actions bot commented Apr 12, 2024

5882 passed, 1 failed, 45 skipped

Test failures:
  TestTransactionIndices: core

Failed
    blockchain_test.go:1946: Oldest indexded block mismatch, want 69, have 100
This test report was produced by the test-summary action.  Made with ❤️ in Cambridge.

rpc/types_test.go Outdated Show resolved Hide resolved
@piersy piersy merged commit 6c57fae into master Apr 12, 2024
26 checks passed
@piersy piersy deleted the piersy/allow-retreiving-blocks-with-finalized-tag branch April 12, 2024 15:07
ezdac pushed a commit that referenced this pull request Apr 18, 2024
* Allow use of finalized tag in rpc requests

This PR allows the use of the "finalized" tag to retrieve blocks or
headers via the RPC. Using the "finalized" tag is equivalent to using
the "latest" tag because all blocks are final in celo.

This is to supprt integration with chainlink since their system depends
on retrieving finalized blocks.
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