We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 518fd83 commit b36523dCopy full SHA for b36523d
internal/utxorpc/sync.go
@@ -194,8 +194,13 @@ func (s *chainSyncServiceServer) FollowTip(
194
point = ocommon.NewPoint(slot, blockHash)
195
}
196
} else {
197
- tip, _ := oConn.ChainSync().Client.GetCurrentTip()
198
- point = tip.Point
+ tip, err := oConn.ChainSync().Client.GetCurrentTip()
+ if err != nil {
199
+ return fmt.Errorf("failed to get tip: %s", err)
200
+ }
201
+ if tip != nil {
202
+ point = tip.Point
203
204
205
206
// Start the sync with the node
0 commit comments