Skip to content

Commit 21ca8cf

Browse files
committed
unify
1 parent abb1bfd commit 21ca8cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpc/stream/rpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (s *RPCStream) start(
165165
// TODO: After indexer improvement, we should get eth header event from indexer
166166
// Currently, many fields are missing or incorrect (e.g. bloom, receiptsRoot, ...)
167167
header := types.EthHeaderFromComet(data.Block.Header, ethtypes.Bloom{}, baseFee)
168-
s.headerStream.Add(RPCHeader{EthHeader: header, Hash: common.BytesToHash(data.Block.Header.Hash())})
168+
s.headerStream.Add(RPCHeader{EthHeader: header, Hash: common.BytesToHash(data.BlockID.Hash)})
169169

170170
case ev, ok := <-chLogs:
171171
if !ok {

0 commit comments

Comments
 (0)