mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "internal/ethapi: don't return header size from rpc (#27347)"
This reverts commit 49ed215ed2.
This commit is contained in:
parent
5625b34ff4
commit
38a33358c1
1 changed files with 1 additions and 0 deletions
|
|
@ -1237,6 +1237,7 @@ func RPCMarshalHeader(head *types.Header) map[string]interface{} {
|
||||||
"miner": head.Coinbase,
|
"miner": head.Coinbase,
|
||||||
"difficulty": (*hexutil.Big)(head.Difficulty),
|
"difficulty": (*hexutil.Big)(head.Difficulty),
|
||||||
"extraData": hexutil.Bytes(head.Extra),
|
"extraData": hexutil.Bytes(head.Extra),
|
||||||
|
"size": hexutil.Uint64(head.Size()),
|
||||||
"gasLimit": hexutil.Uint64(head.GasLimit),
|
"gasLimit": hexutil.Uint64(head.GasLimit),
|
||||||
"gasUsed": hexutil.Uint64(head.GasUsed),
|
"gasUsed": hexutil.Uint64(head.GasUsed),
|
||||||
"timestamp": hexutil.Uint64(head.Time),
|
"timestamp": hexutil.Uint64(head.Time),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue