Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Pending transactions #227

Merged
merged 11 commits into from
Jan 24, 2019
Merged

Pending transactions #227

merged 11 commits into from
Jan 24, 2019

Conversation

eshaben
Copy link
Contributor

@eshaben eshaben commented Nov 18, 2018

eth_getTransactionByHash used to return null for pending transactions, but according to JSON RPC spec, if the transaction is pending only these fields should return null: blockHash, blockNumber, and transactionIndex. This PR fixes this bug so now we return the transaction object with the above mentioned fields as null for pending transactions. And for eth_getTransactionByReceipt on pending transactions, we return null.

Copy link
Contributor

@nicholasjpaterno nicholasjpaterno left a comment

Choose a reason for hiding this comment

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

This all looks good to me!

lib/subproviders/geth_api_double.js Outdated Show resolved Hide resolved
lib/subproviders/geth_api_double.js Outdated Show resolved Hide resolved
Copy link
Member

@davidmurdoch davidmurdoch left a comment

Choose a reason for hiding this comment

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

Couple of changes requested.

lib/blockchain_double.js Outdated Show resolved Hide resolved
lib/blockchain_double.js Outdated Show resolved Hide resolved
lib/subproviders/geth_api_double.js Outdated Show resolved Hide resolved
lib/subproviders/geth_api_double.js Show resolved Hide resolved
@eshaben
Copy link
Contributor Author

eshaben commented Jan 23, 2019

@davidmurdoch I have made all of the changes except the new Block() suggestion which I left a comment about!

@davidmurdoch davidmurdoch merged commit a6c9069 into develop Jan 24, 2019
@davidmurdoch davidmurdoch deleted the pending-transactions branch January 24, 2019 02:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants