@@ -169,6 +169,7 @@ type BlockRes struct {
169
169
LogsBloom * hexdata `json:"logsBloom"`
170
170
TransactionRoot * hexdata `json:"transactionsRoot"`
171
171
StateRoot * hexdata `json:"stateRoot"`
172
+ ReceiptRoot * hexdata `json:"receiptRoot"`
172
173
Miner * hexdata `json:"miner"`
173
174
Difficulty * hexnum `json:"difficulty"`
174
175
TotalDifficulty * hexnum `json:"totalDifficulty"`
@@ -192,6 +193,7 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
192
193
LogsBloom * hexdata `json:"logsBloom"`
193
194
TransactionRoot * hexdata `json:"transactionsRoot"`
194
195
StateRoot * hexdata `json:"stateRoot"`
196
+ ReceiptRoot * hexdata `json:"receiptRoot"`
195
197
Miner * hexdata `json:"miner"`
196
198
Difficulty * hexnum `json:"difficulty"`
197
199
TotalDifficulty * hexnum `json:"totalDifficulty"`
@@ -212,6 +214,7 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
212
214
ext .LogsBloom = b .LogsBloom
213
215
ext .TransactionRoot = b .TransactionRoot
214
216
ext .StateRoot = b .StateRoot
217
+ ext .ReceiptRoot = b .ReceiptRoot
215
218
ext .Miner = b .Miner
216
219
ext .Difficulty = b .Difficulty
217
220
ext .TotalDifficulty = b .TotalDifficulty
@@ -236,6 +239,7 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
236
239
LogsBloom * hexdata `json:"logsBloom"`
237
240
TransactionRoot * hexdata `json:"transactionsRoot"`
238
241
StateRoot * hexdata `json:"stateRoot"`
242
+ ReceiptRoot * hexdata `json:"receiptRoot"`
239
243
Miner * hexdata `json:"miner"`
240
244
Difficulty * hexnum `json:"difficulty"`
241
245
TotalDifficulty * hexnum `json:"totalDifficulty"`
@@ -256,6 +260,7 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
256
260
ext .LogsBloom = b .LogsBloom
257
261
ext .TransactionRoot = b .TransactionRoot
258
262
ext .StateRoot = b .StateRoot
263
+ ext .ReceiptRoot = b .ReceiptRoot
259
264
ext .Miner = b .Miner
260
265
ext .Difficulty = b .Difficulty
261
266
ext .TotalDifficulty = b .TotalDifficulty
@@ -291,6 +296,7 @@ func NewBlockRes(block *types.Block, fullTx bool) *BlockRes {
291
296
res .LogsBloom = newHexData (block .Bloom ())
292
297
res .TransactionRoot = newHexData (block .TxHash ())
293
298
res .StateRoot = newHexData (block .Root ())
299
+ res .ReceiptRoot = newHexData (block .ReceiptHash ())
294
300
res .Miner = newHexData (block .Coinbase ())
295
301
res .Difficulty = newHexNum (block .Difficulty ())
296
302
res .TotalDifficulty = newHexNum (block .Td )
0 commit comments