Skip to content

Commit

Permalink
ineternal/ethapi: wrap block size with hex.Uint64 (ethereum#19885)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 authored and karalabe committed Jul 25, 2019
1 parent 389bd75 commit e4232c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ func RPCMarshalHeader(head *types.Header) map[string]interface{} {
// transaction hashes.
func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool) (map[string]interface{}, error) {
fields := RPCMarshalHeader(block.Header())
fields["size"] = block.Size()
fields["size"] = hexutil.Uint64(block.Size())

if inclTx {
formatTx := func(tx *types.Transaction) (interface{}, error) {
Expand Down

0 comments on commit e4232c1

Please sign in to comment.