Skip to content

Commit

Permalink
fix missing timestamp in pbstream block and in pbgear block
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Voiculescu committed Aug 12, 2024
1 parent df0214c commit f5ec321
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rpc/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,10 @@ func convertBlock(data *FetchedBlockData, specVersion uint32) (*pbbstream.Block,
if err != nil {
return nil, fmt.Errorf("unable to decode timestamp: %w", err)
}
timestamppb.New(time.UnixMilli(t.Int64()))
timestamp = timestamppb.New(time.UnixMilli(t.Int64()))
}

block.Timestamp = timestamp

anyBlock, err := anypb.New(block)
if err != nil {
return nil, fmt.Errorf("unable to create anypb: %w", err)
Expand Down

0 comments on commit f5ec321

Please sign in to comment.