Skip to content

Commit 96f28b8

Browse files
authored
enhance api for subnet project (ethereum#289)
1 parent 060d9ce commit 96f28b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

consensus/XDPoS/api.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type V2BlockInfo struct {
4040
Number *big.Int
4141
ParentHash common.Hash
4242
Committed bool
43+
Miner common.Hash
4344
EncodedRLP string
4445
Error string
4546
}
@@ -207,6 +208,7 @@ func (api *API) GetV2BlockByHeader(header *types.Header, uncle bool) *V2BlockInf
207208
Number: header.Number,
208209
Round: round,
209210
Committed: committed,
211+
Miner: header.Coinbase.Hash(),
210212
EncodedRLP: base64.StdEncoding.EncodeToString(encodeBytes),
211213
}
212214
return block

0 commit comments

Comments
 (0)