Skip to content

Commit

Permalink
fix: restore chainsync status update in bulk mode
Browse files Browse the repository at this point in the history
  • Loading branch information
agaffney committed Aug 31, 2023
1 parent c3b2058 commit d99e094
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions input/chainsync/chainsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ func (c *ChainSync) handleBlockFetchBlock(block ledger.Block) error {
txEvt := event.New("chainsync.transaction", time.Now(), NewTransactionEvent(block, transaction, c.includeCbor))
c.eventChan <- txEvt
}
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 {
Expand Down

0 comments on commit d99e094

Please sign in to comment.