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 29ae994 commit 996c877Copy full SHA for 996c877
protocol/chainsync/client.go
@@ -223,6 +223,10 @@ func (c *Client) GetAvailableBlockRange(
223
c.busyMutex.Lock()
224
defer c.busyMutex.Unlock()
225
226
+ // Use origin if no intersect points were specified
227
+ if len(intersectPoints) == 0 {
228
+ intersectPoints = []common.Point{common.NewPointOrigin()}
229
+ }
230
// Find our chain intersection
231
result := c.requestFindIntersect(intersectPoints)
232
if result.error != nil {
0 commit comments