Skip to content

Commit

Permalink
rm commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Aug 23, 2024
1 parent 3d19173 commit e3eb8b7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions reporter/bootstrapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,7 @@ func (r *Reporter) bootstrap(skipBlockSubscription bool) error {
}
r.logger.Debugf("BTC cache size: %d", r.btcCache.Size())

// Subscribe new blocks right after initialising BTC cache, in order to ensure subscribed blocks and cached blocks do not have overlap.
// Otherwise, if we subscribe too early, then they will have overlap, leading to duplicated header/ckpt submissions.
//if !skipBlockSubscription {
// //r.btcClient.MustSubscribeBlocks() // todo(lazar): check if we need to handle this
//}

consistencyInfo, err := r.checkConsistency()

if err != nil {
return err
}
Expand Down Expand Up @@ -132,6 +125,7 @@ func (r *Reporter) bootstrap(skipBlockSubscription bool) error {
}

r.logger.Info("Successfully finished bootstrapping")

return nil
}

Expand Down Expand Up @@ -226,6 +220,7 @@ func (r *Reporter) initBTCCache() error {
if err = r.btcCache.Init(ibs); err != nil {
panic(err)
}

return nil
}

Expand Down Expand Up @@ -316,5 +311,6 @@ func (r *Reporter) checkHeaderConsistency(consistencyCheckHeight uint64) error {
err = fmt.Errorf("BTC main chain is inconsistent with BBN header chain: k-deep block in BBN header chain: %v", consistencyCheckHash)
panic(err)
}

return nil
}

0 comments on commit e3eb8b7

Please sign in to comment.