Skip to content

Commit

Permalink
fix: use bulk mode when starting from chain origin (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
agaffney authored Aug 21, 2024
1 parent c6820a1 commit 1e58b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chainsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (n *Node) chainsyncClientStart(connId ouroboros.ConnectionId) error {
if err != nil {
return err
}
if bulkRangeStart.Slot == 0 || bulkRangeEnd.Slot == 0 {
if bulkRangeStart.Slot == 0 && bulkRangeEnd.Slot == 0 {
// We're already at chain tip, so start a normal sync
return oConn.ChainSync().Client.Sync(intersectPoints)
}
Expand Down

0 comments on commit 1e58b33

Please sign in to comment.