Skip to content

fix: eth_getBlockByNumber should return Latest if Pending is None#194

Merged
danyalprout merged 4 commits intobase:mainfrom
Parizval:fix-canonical-none
Nov 12, 2025
Merged

fix: eth_getBlockByNumber should return Latest if Pending is None#194
danyalprout merged 4 commits intobase:mainfrom
Parizval:fix-canonical-none

Conversation

@Parizval
Copy link
Copy Markdown
Contributor

Closes #178

get_block_by_number() function is updated to match the Geth's behaviour of returning Latest Block.

@cb-heimdall
Copy link
Copy Markdown
Collaborator

cb-heimdall commented Nov 12, 2025

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

Copy link
Copy Markdown
Collaborator

@haardikk21 haardikk21 left a comment

Choose a reason for hiding this comment

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

minor nit

@Parizval Parizval requested a review from haardikk21 November 12, 2025 22:49
Copy link
Copy Markdown
Collaborator

@danyalprout danyalprout left a comment

Choose a reason for hiding this comment

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

lgtm, thank you!

@danyalprout danyalprout merged commit 2ad2f30 into base:main Nov 12, 2025
7 checks passed
refcell added a commit that referenced this pull request Feb 18, 2026
### Description

Ports the span batch bits to `op-alloy-protocol`.

### Provenance

Part of a port migrating the batch types from `kona-derive` to
`op-alloy`. See
[`kona#695`](op-rs/kona#695).
mw2000 pushed a commit that referenced this pull request Mar 9, 2026
Co-authored-by: Ubuntu <ubuntu@op-geth-nodes.maas>
mw2000 pushed a commit that referenced this pull request Mar 16, 2026
Co-authored-by: Ubuntu <ubuntu@op-geth-nodes.maas>
haardikk21 pushed a commit that referenced this pull request Mar 17, 2026
* fix: eth_getBlockByNumber should return Latest if Pending is None

* style: improve readibility of fn block_by_number

* style: removing extra whitespaces in fn test_get_pending_block
haardikk21 pushed a commit that referenced this pull request Mar 17, 2026
Co-authored-by: Ubuntu <ubuntu@op-geth-nodes.maas>
mw2000 pushed a commit that referenced this pull request Mar 19, 2026
Co-authored-by: Ubuntu <ubuntu@op-geth-nodes.maas>
mw2000 pushed a commit that referenced this pull request Mar 23, 2026
Co-authored-by: Ubuntu <ubuntu@op-geth-nodes.maas>
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.

eth_getBlockByNumber should return Latest if Pending is None

4 participants