Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth, internal/ethapi: make RPC block miner field show block sealer correctly #23312

Merged
merged 5 commits into from
Aug 17, 2021

Conversation

chenjia404
Copy link
Contributor

If the poa consensus mechanism is used, the miner of each block will be 0x0000000000000000000000000000000000000000, modify the author method of returning to the engine.

RPC API:The miner returned by Block is consensus.Engine.Author(block.Header())

Also, implemented tests for:
eth_getBlockByNumber eth_getBlockByHash

internal/ethapi/api.go Outdated Show resolved Hide resolved
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@chenjia404
Copy link
Contributor Author

@holiman Can this pr be added to 1.10.7

@holiman holiman changed the title RPC API:The miner returned by Block is consensus.Engine.Author eth, internal/ethai: make RPC block miner field show block sealer correctly Aug 17, 2021
@holiman holiman changed the title eth, internal/ethai: make RPC block miner field show block sealer correctly eth, internal/ethapi: make RPC block miner field show block sealer correctly Aug 17, 2021
@holiman holiman merged commit 57feabe into ethereum:master Aug 17, 2021
@holiman holiman added this to the 1.10.8 milestone Aug 17, 2021
sidhujag pushed a commit to sidhujag/go-ethereum that referenced this pull request Aug 18, 2021
…rrectly (ethereum#23312)

Makes the RPC block return the POA sealer for clique blocks on the 'miner' field (was previously zeroes)
@realdave
Copy link
Contributor

This change breaks client side block hash calculation.

holiman added a commit that referenced this pull request Aug 25, 2021
github-actions bot pushed a commit to syuan100/go-ethereum that referenced this pull request Aug 26, 2021
sidhujag pushed a commit to sidhujag/go-ethereum that referenced this pull request Aug 26, 2021
@acud
Copy link
Member

acud commented Aug 27, 2021

This change breaks client side block hash calculation.

@realdave our tests show that when using the go-ethereum go API, the returned block hash is wrong even on v1.9.0

tclemos added a commit to hermeznetwork/go-ethereum that referenced this pull request Aug 27, 2021
atif-konasl pushed a commit to frozeman/pandora-execution-engine that referenced this pull request Oct 15, 2021
…rrectly (ethereum#23312)

Makes the RPC block return the POA sealer for clique blocks on the 'miner' field (was previously zeroes)
AusIV pushed a commit to NoteGio/go-ethereum that referenced this pull request Oct 25, 2021
yongjun925 pushed a commit to DODOEX/go-ethereum that referenced this pull request Dec 3, 2022
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.

5 participants