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
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't need this
chenjia404 committed Aug 1, 2021
commit 54aebfaaa13f897ea65d5c0d0065682dae0bcbdd
3 changes: 0 additions & 3 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
@@ -740,9 +740,6 @@ func (s *PublicBlockChainAPI) GetBlockByNumber(ctx context.Context, number rpc.B
for _, field := range []string{"hash", "nonce", "miner"} {
response[field] = nil
}
} else if err == nil {
author, _ := s.b.Engine().Author(block.Header())
response["miner"] = author
}
return response, err
}