Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopeereboom committed Nov 5, 2024
1 parent dac52c3 commit ce320f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions service/tbc/tbc.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,10 @@ type Server struct {
// broadcast
broadcast map[chainhash.Hash]*wire.MsgTx

// inv blocks see
// missed block inventories during indexing
invBlocks []*chainhash.Hash

// bitcoin network
seeds []string // XXX remove
wireNet wire.BitcoinNet
chainParams *chaincfg.Params
timeSource blockchain.MedianTimeSource
Expand Down Expand Up @@ -787,7 +786,7 @@ func (s *Server) handleBlockExpired(ctx context.Context, key any, value any) err
return fmt.Errorf("is canonical: %w", err)
}
if !canonical {
log.Infof("deleting from blocks missing: %v %v %v",
log.Infof("Deleting from blocks missing database: %v %v %v",
p, bhX.Height, bhX)
err := s.db.BlockMissingDelete(ctx, int64(bhX.Height), &bhX.Hash)
if err != nil {
Expand All @@ -798,7 +797,7 @@ func (s *Server) handleBlockExpired(ctx context.Context, key any, value any) err
return nil
}

log.Infof("block expired %v %v", p, hash)
log.Infof("Block expired: %v %v", p, hash)

// Legit timeout, return error so that it can be retried.
return fmt.Errorf("timeout %v", key)
Expand Down

0 comments on commit ce320f2

Please sign in to comment.