-
Notifications
You must be signed in to change notification settings - Fork 391
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(api/c-chain): change of behavior for eth_getProof #1996
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Note the `eth_getProof` is acting differently from release v0.14.1: | ||
|
||
- On archive nodes (`"pruning-enabled": false`): queries for historical proofs for state older than approximately 24 hours preceding the last accepted block will be rejected by default. This can be adjusted with the new option `historical-proof-query-window` which defines the number of blocks before the last accepted block which should be accepted for state proof queries, or set to `0` to accept any block number state query. | ||
- On `pruning` nodes: queries for proofs past the tip buffer (32 blocks) will be rejected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the same (except the error message I suppose) as the previous behavior isn't it? 🤔
If it is, should we remove it from here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not the exact same behavior as they would have responded to proofs for blocks matching the commit height 4096, so we can leave this here.
Also perhaps this should be under the Ethereum APIs section, we can add a new section for eth_getProof
if there's not one already and just include this notice, mentioning the API otherwise behaves as upstream.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already in the ## Ethereum APIs
section / ### Standard Ethereum APIs
sub-section.
I've moved this to an #### Exceptions
subsection as a bullet point, let me know if that works.
cd874a5
to
2101c6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestions to improve readability. also removes extra blank line to please the .md linter
@@ -81,6 +81,14 @@ For batched requests on the [public API node](/tooling/rpc-providers) , the maxi | |||
number of items is 40. We are working on to support a larger batch size. | |||
</Callout> | |||
|
|||
#### Exceptions | |||
|
|||
- `eth_getProof` behaves differently than geth, from release v0.14.1, with the following differences: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the release version should the avalanchego version, not the coreth version. I suppose we should wait for the next avalanchego release using coreth v0.14.1 (unreleased) to merge this PR.
I am surprised this doesn't need a rebasing |
Co-authored-by: Meaghan FitzGerald <[email protected]> Signed-off-by: Quentin McGaw <[email protected]>
Signed-off-by: Quentin McGaw <[email protected]>
119671f
to
cda0685
Compare
No description provided.