rpc: return 0x0 as extra data in block instead of nil (#333)

* return 0x0 extra data instead of nil

* add fix for getBlock

* add tests
This commit is contained in:
noot
2020-06-17 12:14:21 -04:00
committed by GitHub
parent 7b164a5aa4
commit 94f6acc651
2 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -526,7 +526,7 @@ func formatBlock(
"miner": common.Address{},
"difficulty": nil,
"totalDifficulty": nil,
"extraData": nil,
"extraData": hexutil.Uint64(0),
"size": hexutil.Uint64(size),
"gasLimit": hexutil.Uint64(gasLimit), // Static gas limit
"gasUsed": (*hexutil.Big)(gasUsed),