Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Adding mixHash to newHeads subscription output #278

Merged
merged 1 commit into from
Oct 4, 2018

Conversation

gislik
Copy link
Contributor

@gislik gislik commented Aug 28, 2018

The golang implementation (geth) has, since v1.5.0, relied on the mixHash field to be present in the JSON representation of a block to calculate and verify the block hash.

See ethereum/go-ethereum#3230 for the discussion.

Eventhough this was not specified in the Ethereum JSON-RPC protocol this was recognized (openethereum/parity-ethereum#3148) by the Parity team and subsequently implemented and merged (openethereum/parity-ethereum#3169) into the Parity client.

When the websocket subprovider was implemented #189 it omitted the mixHash which results in the following error when using geth's ethclient.

missing required field 'mixHash' for Header

This pull request adds the mixHash to the JSON output.

@kumavis kumavis merged commit e0ea1ac into MetaMask:master Oct 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants