Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Oct 25, 2024
1 parent d5480b1 commit ceb218e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions harness/headergenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,12 @@ func (g *BTCHeaderGenerator) Start(ctx context.Context) {
}

func (g *BTCHeaderGenerator) runForever(ctx context.Context) {
//t := time.NewTicker(5 * time.Second)
//defer t.Stop()
//
//for {
// select {
// case <-ctx.Done():
// return
// case <-t.C:
// _ = g.genBlocks(ctx)
// }
//}

for {
select {
case <-ctx.Done():
return
default:
_ = g.genBlocks(ctx) // Generate and insert blocks continuously
_ = g.genBlocks(ctx)
}
}
}
Expand Down

0 comments on commit ceb218e

Please sign in to comment.