rpc: fix JSON-RPC block extraData (#204)

This commit is contained in:
Jongwhan Lee 2021-06-29 23:05:12 +08:00 committed by GitHub
parent 336703cfc9
commit a2e3d35df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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