Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Add option to include transaction receipts in eth_getBlockByHash #9075#9126

Closed
shamardy wants to merge 4 commits into
openethereum:masterfrom
shamardy:Issue#9075
Closed

Add option to include transaction receipts in eth_getBlockByHash #9075#9126
shamardy wants to merge 4 commits into
openethereum:masterfrom
shamardy:Issue#9075

Conversation

@shamardy
Copy link
Copy Markdown
Contributor

@shamardy shamardy commented Jul 15, 2018

closes #9075

@parity-cla-bot
Copy link
Copy Markdown

It looks like this contributor signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@5chdn 5chdn added this to the 2.1 milestone Jul 16, 2018
@5chdn 5chdn added A0-pleasereview 🤓 Pull request needs code review. M6-rpcapi 📣 RPC API. labels Jul 16, 2018
@5chdn 5chdn modified the milestones: 2.1, 2.2 Jul 17, 2018
@sorpaas
Copy link
Copy Markdown
Collaborator

sorpaas commented Jul 27, 2018

Do we need proper EIPs for this eth_ namespace change?

@shamardy
Copy link
Copy Markdown
Contributor Author

shamardy commented Aug 4, 2018

@sorpaas @5chdn any update here?

@sorpaas
Copy link
Copy Markdown
Collaborator

sorpaas commented Aug 6, 2018

@shamardy Code looks good to me. The issue I see is whether we would need an EIP for this.

The current design can be confusing -- we have too booleans called in a line, and users can easily mix them up. Just an idea: maybe we can change this to accept either a boolean (which it is the old behavior), or a JSON dict with two optional fields { fullTransactions: bool, fullReceipts: bool }.

@tjayrush
Copy link
Copy Markdown

tjayrush commented Aug 6, 2018

Personally, coming from the user's perspective, I think the original design works perfectly. Two bools is easy to understand, not confusing.

If users mix the inputs up during the call, they will quickly discover the problem because the returned data won't parse. I'd rather see a simple, straightforward interface.

Also, I think this issue #9279 (comment) is trying to accomplish almost exactly the same thing. They should be combined.

Finally, this should be an EIP not an issue against Parity. In that way, it would get added to other clients (particularly geth). We should be moving towards more consistent RPC interfaces across clients as opposed to less consistent.

@debris
Copy link
Copy Markdown
Collaborator

debris commented Aug 10, 2018

Do we need proper EIPs for this eth_ namespace change?

This should definitely be an EIP fist. The issue was incorrectly labeled. Please open an EIP here and reopen the issue if accepted. I'm sorry @shamardy

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-pleasereview 🤓 Pull request needs code review. M6-rpcapi 📣 RPC API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to include transaction receipts in eth_getBlockByHash

6 participants