ineternal/ethapi: wrap block size with hex.Uint64 (#19885)

This commit is contained in:
gary rong 2019-07-25 14:25:16 +08:00 committed by Péter Szilágyi
parent 389bd75142
commit e4232c153b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {