Skip to content

Commit

Permalink
add comment and better log line
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonNorthey92 committed Jan 14, 2025
1 parent 302b5f8 commit a9ed312
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/bfg/bfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,12 @@ func (s *Server) tipChangeChecker(ctx context.Context) {
continue
}

log.Tracef("checking for missing blocks, walking from tip %d to %d", height, s.cfg.BTCStartHeight)
log.Tracef("checking for missing blocks, walking from tip %d to %d or first known block from tip", height, s.cfg.BTCStartHeight)

for height > s.cfg.BTCStartHeight {
err := s.processBitcoinBlock(ctx, height, true)

// we have seen this block, done walking back
if errors.Is(err, database.ErrDuplicate) {
log.Tracef("block is already found, exiting")
break
Expand Down

0 comments on commit a9ed312

Please sign in to comment.