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

Issue 2040 #2209

Merged
merged 3 commits into from
Nov 19, 2021
Merged

Issue 2040 #2209

merged 3 commits into from
Nov 19, 2021

Conversation

fselmo
Copy link
Collaborator

@fselmo fselmo commented Nov 17, 2021

What was wrong?

Related to:

How was it fixed?

  • Support added for eth_getRawTransactionByBlock
  • Async support added for eth_getRawTransactionByBlock

Todo:

Cute Animal Picture

20211117_141719

@fselmo fselmo force-pushed the issue-2040 branch 4 times, most recently from ad945df to 36e5d1a Compare November 18, 2021 00:11
@fselmo fselmo marked this pull request as ready for review November 18, 2021 00:12
@fselmo fselmo force-pushed the issue-2040 branch 2 times, most recently from 0245908 to 6832b83 Compare November 18, 2021 00:22
@@ -617,7 +617,8 @@ The following methods are available on the ``web3.eth`` namespace.
``eth_getTransactionByBlockNumberAndIndex`` if ``block_identifier`` is an
integer or one of the predefined block parameters ``'latest', 'earliest',
'pending'``, otherwise delegates to
``eth_getTransactionByBlockHashAndIndex``. If the transaction has not yet been mined throws :class:`web3.exceptions.TransactionNotFound`.
``eth_getTransactionByBlockHashAndIndex``.
If a transaction is not found at specified arguments, throws :class:`web3.exceptions.TransactionNotFound`.
Copy link
Collaborator Author

@fselmo fselmo Nov 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is important because this method does return a transaction for pending blocks; i.e. not-yet-mined transactions.

e.g. get_transaction_by_block('pending', txn_index)

@fselmo
Copy link
Collaborator Author

fselmo commented Nov 18, 2021

@dshehbaj, @shreyassai123, @DavidRomanovizc thanks for all the work on this! I saw there were 3 open PRs with very similar changes. I tried to piggy back off of them here and give credit to all 3 😃

My changes were rebasing with the current master, minor tweaks, adding tests, adding documentation, and adding async support.

Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks @fselmo, @dshehbaj, @shreyassai123, and @DavidRomanovizc! LGTM! 🚢

shehbajdhillon and others added 3 commits November 19, 2021 10:52
credit: @dshehbaj, @shreyassai123, @DavidRomanovizc

commit summary:
- Defined RPC methods in rpc_abi.py
- Defined eth.get_raw_transaction_by_block method
- Method formatting
- Suggested changes
- Linting
- Fixed Errors
- Reconcile differences across all 3 getRawTransactionByBlock PRs
- Add tests
- Minor corrections for eth_getRawTransactionByBlock
- Add docs
@DavidRomanovizc
Copy link
Contributor

Awesome! Thanks @fselmo, @dshehbaj, @shreyassai123, and @DavidRomanovizc! LGTM! 🚢

with pleasure

@fselmo fselmo merged commit 2f05f61 into ethereum:master Nov 19, 2021
@fselmo fselmo deleted the issue-2040 branch November 19, 2021 18:09
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.

Add eth.get_raw_transaction_by_block
4 participants