Skip to content

Conversation

DockBoss
Copy link
Contributor

  • Geth
  • OpenEthereum
  • Nethermind
  • Besu
  • Erigon

- [ ] Geth
- [ ] OpenEthereum
- [ ] Nethermind
- [ ] Besu
- [ ] Erigon
@alita-moore
Copy link

cc @MicahZoltu @timbeiko @marcindsobczak @gnidan @rekmarks @rakitadragan @vorot93

This is a PR for adding edgecases for the proposed method. In particular, an edgecase is defined as any behavior outside of the OpenRPC specification defined in this repository. This needs approval from all 5 clients before it can be merged. This is one method in a slew soon to come.

@@ -0,0 +1 @@
* If the client has a block equal to the `block_number` parameter it **MUST** return the number of transactions the block conatins, otherwise it **MUST** return null.

Choose a reason for hiding this comment

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

Maybe this is what clients currently do, but it is definitely not what clients should do.

Clients should return a JSON-RPC error if they do not have the block requested. If they do have the requested block, it should always return a number (never null).

In general, the JSON-RPC should be returning errors for error conditions, not returning sentinel values or null for error conditions.

@alita-moore alita-moore mentioned this pull request Aug 20, 2021
50 tasks
@lightclient lightclient added the A-edge-case Area: edge cases label Aug 23, 2021
@DockBoss DockBoss closed this Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-edge-case Area: edge cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants