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.
2 parents 4e6a58d + 9003055 commit 8fa6997Copy full SHA for 8fa6997
protocol/chainsync/client.go
@@ -195,6 +195,10 @@ func (c *Client) GetAvailableBlockRange(intersectPoints []common.Point) (common.
195
func (c *Client) Sync(intersectPoints []common.Point) error {
196
c.busyMutex.Lock()
197
defer c.busyMutex.Unlock()
198
+ // Use origin if no intersect points were specified
199
+ if len(intersectPoints) == 0 {
200
+ intersectPoints = []common.Point{common.NewPointOrigin()}
201
+ }
202
msg := NewMsgFindIntersect(intersectPoints)
203
if err := c.SendMessage(msg); err != nil {
204
return err
0 commit comments