Skip to content

Go-Ethereum 1.11.3 compatibility (no version bump) - #40

Open
DragonDev1906 wants to merge 1 commit into
hyperledger-labs:mainfrom
DragonDev1906:geth-1.11.3-compatibility
Open

Go-Ethereum 1.11.3 compatibility (no version bump)#40
DragonDev1906 wants to merge 1 commit into
hyperledger-labs:mainfrom
DragonDev1906:geth-1.11.3-compatibility

Conversation

@DragonDev1906

Copy link
Copy Markdown
Contributor

Go-Ethereum 1.11.3 changes how BlockChain.CurrentBlock() works: Instead of returning a *types.Block it returns a *types.Header. This commit changes it to use BlockChain.CurrentHeader(), which is sufficient for us and will not break when bumping Go-Ethereum to version 1.11.3.

Go-Ethereum 1.11.3 changes how `BlockChain.CurrentBlock()` works:
Instead of returning a `*types.Block` it returns a `*types.Header`. This
commit changes it to use `BlockChain.CurrentHeader()`, which is
sufficient for us and will not break when bumping Go-Ethereum to
version 1.11.3.

Signed-off-by: Jens Winkle <jens@perun.network>
@DragonDev1906
DragonDev1906 marked this pull request as ready for review April 14, 2023 11:52
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.

1 participant