From a2e3d35df282ace052f2d6160890589925ca11bf Mon Sep 17 00:00:00 2001 From: Jongwhan Lee <51560997+leejw51crypto@users.noreply.github.com> Date: Tue, 29 Jun 2021 23:05:12 +0800 Subject: [PATCH] rpc: fix JSON-RPC block extraData (#204) --- ethereum/rpc/types/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/rpc/types/utils.go b/ethereum/rpc/types/utils.go index 6fc89e71..0a48c3b6 100644 --- a/ethereum/rpc/types/utils.go +++ b/ethereum/rpc/types/utils.go @@ -186,7 +186,7 @@ func FormatBlock( "miner": common.Address{}, "mixHash": common.Hash{}, "difficulty": (*hexutil.Big)(big.NewInt(0)), - "extraData": hexutil.Uint64(0), + "extraData": "", "size": hexutil.Uint64(size), "gasLimit": hexutil.Uint64(gasLimit), // Static gas limit "gasUsed": (*hexutil.Big)(gasUsed),