Skip to content

add method for checking eip1559 support#197

Merged
peterbroadhurst merged 2 commits into
hyperledger-firefly:mainfrom
kaleido-io:eip1559
Jul 8, 2026
Merged

add method for checking eip1559 support#197
peterbroadhurst merged 2 commits into
hyperledger-firefly:mainfrom
kaleido-io:eip1559

Conversation

@Chengxuan

Copy link
Copy Markdown
Contributor

Added a method for consumers to get the block info of the highest block. So that it can be used to check whether EIP1559 is supported using the presence of "baseFeePerGas" field from the block header.

Note: instead of introducing a GetBlockBaseFeePerGas or SupportsEIP1559 in the BlockListener interface. I decided to cache and return the entire block info. So if other fields in the block info need to be used for other checks, we don't need to keep adding separate functions for them at the block listener interface.

Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
@Chengxuan Chengxuan requested a review from a team as a code owner June 25, 2026 12:36
… eip1559

Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>

@peterbroadhurst peterbroadhurst left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 - looks clear and straight forward.
The BlockInfoJSONRPC doesn't contain the transactions, so the extra memory is trivial.

@peterbroadhurst peterbroadhurst merged commit a756b62 into hyperledger-firefly:main Jul 8, 2026
4 checks passed
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.

2 participants