Skip to content

Commit

Permalink
Merge pull request #70 from blinklabs-io/fix/chainsync-bulk-mode
Browse files Browse the repository at this point in the history
fix: use chainsync bulk sync end point to continue sync
  • Loading branch information
agaffney authored Sep 2, 2023
2 parents 82f2251 + 94f0a95 commit c1f9e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/chainsync/chainsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (c *ChainSync) handleBlockFetchBlock(block ledger.Block) error {
c.updateStatus(block.SlotNumber(), block.BlockNumber(), block.Hash(), c.bulkRangeEnd.Slot, hex.EncodeToString(c.bulkRangeEnd.Hash))
// Start normal chain-sync if we've reached the last block of our bulk range
if block.SlotNumber() == c.bulkRangeEnd.Slot {
if err := c.oConn.ChainSync().Client.Sync(c.intersectPoints); err != nil {
if err := c.oConn.ChainSync().Client.Sync([]ocommon.Point{c.bulkRangeEnd}); err != nil {
return err
}
}
Expand Down

0 comments on commit c1f9e2c

Please sign in to comment.