Revert "eth, internal/ethapi: make RPC block miner field show block sealer correctly (#23312)" (#23466)

This reverts commit 57feabea66.
This commit is contained in:
Martin Holst Swende
2021-08-26 08:35:37 +02:00
committed by GitHub
parent 108eec3fee
commit 62ad17fb00
2 changed files with 7 additions and 9 deletions

View File

@ -342,7 +342,7 @@ func (api *PrivateDebugAPI) GetBadBlocks(ctx context.Context) ([]*BadBlockArgs,
} else {
blockRlp = fmt.Sprintf("0x%x", rlpBytes)
}
if blockJSON, err = ethapi.RPCMarshalBlock(block, true, true, api.eth.engine); err != nil {
if blockJSON, err = ethapi.RPCMarshalBlock(block, true, true); err != nil {
blockJSON = map[string]interface{}{"error": err.Error()}
}
results = append(results, &BadBlockArgs{