-
Notifications
You must be signed in to change notification settings - Fork 80
feat: Include support for getblockreceipts #3521
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: Include support for getblockreceipts #3521
Conversation
Test Results 19 files - 4 245 suites - 70 38m 55s ⏱️ - 34m 23s For more details on these failures, see this check. Results for commit 8c39bea. ± Comparison against base commit d6d04e2. This pull request removes 1 and adds 5 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
32fc01a
to
a4dae7e
Compare
aebf800
to
56713b0
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.
LG left some questions.
Also, didn't see this eth_getBlockReceipts added to the list of rate limit methodConfig
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.
I’ve noticed that execution time is quite long. I haven’t analyzed it in depth yet, but I tested eth_getBlockReceipts with the hash 0xec04afbe85d980c67723e18121499dd9c32fce65ca06522baf4433d39ef00164, and it takes around 3000ms for e2e execution. eth_getBlockByHash with the same hash takes roughly 250ms.
I understand that retrieving receipts requires additional operations, but 3000ms is still quite high. Our performance tests show that most methods complete within a few hundred milliseconds.
Let’s review the implementation to ensure there are no unnecessary calls or inefficiencies.
Also with that said please add this to k6 as well.
The request took 1 second for me with this hash. How did you send it ? Also added a k6 test, tell me if its good enough https://github.com/hashgraph/hedera-json-rpc-relay/pull/3521/files#diff-ea2bf404fda3277c2324aa1ca400f86a65e4a433dc59a4710e086dfdc39f2bdcR9 |
@konstantinabl Hmmm I tried it with a random hash edited: Might have been network congestion or something similar. Tested it again and got around 1200 ms. I was pretty sure it consistently reached up to 3000 ms back then. Your new updates might have reduced the end-to-end time. |
So are we fine with this or should I try improving it, its kinda slow really, but could be worse @quiet-node @Ferparishuertas |
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.
Left some questions and suggestions
57c9dc0
to
ef26ec9
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.
Great! Definitely less cluttered now! Just left some small suggestions and we should be good to go
15dd46e
to
7ba57d2
Compare
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
…t tests Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
This reverts commit cad15bb. Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
99357d6
to
8c39bea
Compare
Description:
This PR implements the eth_getBlockReceipts JSON-RPC method, which returns an array of all transaction receipts for a given block.
Implementation details:
Related issue(s):
Fixes #2613
Notes for reviewer:
Current implementation does not include synthtetic transactions
Checklist