From e4232c153ba93a71a3e39a74dbe5f1d7c1ad46ac Mon Sep 17 00:00:00 2001 From: gary rong Date: Thu, 25 Jul 2019 14:25:16 +0800 Subject: ineternal/ethapi: wrap block size with hex.Uint64 (#19885) --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/ethapi/api.go') diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 8b0489e7a..8e1cebeeb 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -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) { -- cgit v1.2.3