Skip to content

Commit

Permalink
Make for loop eventually exit
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacia committed Oct 23, 2017
1 parent 50117d1 commit b3a44b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (b *Blockchain) Rollback(t time.Time) error {
return nil
}
rollbackHeight := uint32(0)
for {
for i := 0; i < 1000000000; i++ {
sh, err = b.db.GetPreviousHeader(sh.header)
if err != nil {
return err
Expand Down

0 comments on commit b3a44b3

Please sign in to comment.