-
Notifications
You must be signed in to change notification settings - Fork 990
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
Disable merkle proofs for v2 get_block #3487
Disable merkle proofs for v2 get_block #3487
Conversation
api/src/foreign_rpc.rs
Outdated
curl -X POST \ | ||
-H 'Content-Type: application/json' \ | ||
-d '{"jsonrpc":"2.0","id":1,"method":"get_block","params":[952019, null, null]}' \ | ||
http://localhost:3413/v2/foreign | ||
|
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.
What's that? The doctests (currently disabled) are just below.
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.
lol 😭
api/src/foreign_rpc.rs
Outdated
{ | ||
"jsonrpc": "2.0", | ||
"method": "get_block", | ||
"params": [374274, null, null], |
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 value you want to change here I guess
Other than that everything looks good to me. |
356ee4a
to
593d4e6
Compare
This PR defaults to
include_merkle_proof = false
in the v2 apiget_block
jsonrpc endpoint.These Merkle proofs are not actively used by anyone and were originally included (I believe) as a "proof of concept".
They are expensive to generate for historical blocks (specifically against a full archival node).
Related #3483.
Tested via -
This is equivalent behavior to the optional
?no_merkle_proof
url param in the original v1 api endpoint -