Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Feb 6, 2025
1 parent 03f9438 commit 6c86687
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkg/rpcServer/eventHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,14 @@ func (rpc *RpcServer) StreamIndexedBlocks(request *v1.StreamIndexedBlocksRequest
rpc.Logger.Debug("Received block", zap.Any("data", data))
blockProcessedData := data.(*eventBusTypes.BlockProcessedData)

resp, err := rpc.buildBlockResponse(blockProcessedData, request.GetIncludeStateChanges())
if err != nil {
return err
}
if onlyBlocksWithData && processedBlockHasData(blockProcessedData) {
resp, err := rpc.buildBlockResponse(blockProcessedData, request.GetIncludeStateChanges())
if err != nil {
return err
}

return g.SendMsg(resp)
return g.SendMsg(resp)
}
})
if err != nil {
return err
Expand Down

0 comments on commit 6c86687

Please sign in to comment.