Skip to content

Commit

Permalink
Refactor: reverted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoog committed Mar 22, 2024
1 parent 5a3842d commit ca5695f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/protocol/engine/notarization/slotnotarization/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ func (m *Manager) ForceCommit(slot iotago.SlotIndex) (*model.Commitment, error)
}

func (m *Manager) ForceCommitUntil(commitUntilSlot iotago.SlotIndex) error {
m.LogInfof("Force commit until slot %d", commitUntilSlot)
m.LogInfo("force committing", "slot", commitUntilSlot)

//for i := m.storage.Settings().LatestCommitment().Slot() + 1; i <= commitUntilSlot; i++ {
// if _, err := m.ForceCommit(i); err != nil {
// return ierrors.Wrapf(err, "failed to force commit slot %d", i)
// }
//}
for i := m.storage.Settings().LatestCommitment().Slot() + 1; i <= commitUntilSlot; i++ {
if _, err := m.ForceCommit(i); err != nil {
return ierrors.Wrapf(err, "failed to force commit slot %d", i)
}
}

return nil
}
Expand Down

0 comments on commit ca5695f

Please sign in to comment.