-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support non-standard RPC methods for indexing services #123
Conversation
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.
LGTM
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.
Please check out my comments
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.
LGTM
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.
@rahul10-pu This PR includes no rationale for why it should be implemented and merged; further, it does not document these methods as nonstandard, it implements these methods inline in JS code instead of as stored procedures, and does not adhere to the code formatting standards.
…g it from the js file for the result
…om the js file for the result
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 previous feedback was only partially addressed. These are still not documented as nonstandard methods, and contextual & defined coding conventions are not honored. What's worse, the new methods have not been tested with real data and are incorrect by construction.
etc/schema/functions/eth_getTransactionReceiptsByBlockNumber.sql
Outdated
Show resolved
Hide resolved
…or the non-standard methods to handle multiple rows result
…ayer into covalentMethods
I am closing this PR as it outdated with the new updates of the relayer codebase. Please feel free to reopen it, if it is needed in the future. |
Description
This PR covers the following RPC methods:
eth_getTransactionsByBlockNumber
andeth_getTransactionReceiptsByBlockNumber
Rational
The main reason for this PR is that our partners requested us to support these RPC methods.
Example
Examples are mocked up because we don't have a multiple transactions in the same block.
eth_getTransactionReceiptsByBlockNumber
Request:http post localhost:8545 jsonrpc=2.0 id=1 method=eth_getTransactionReceiptsByBlockNumber params:='["0x484be53"]'
Response:
eth_getTransactionsByBlockNumber
Request:http post localhost:8545 jsonrpc=2.0 id=1 method=eth_getTransactionsByBlockNumber params:='["0x484be53"]'
Response:
Ref: binance-chain#115