From ca5695ff35eab1f15f7e052188de474ce0e095c5 Mon Sep 17 00:00:00 2001 From: Hans Moog <3293976+hmoog@users.noreply.github.com> Date: Sat, 23 Mar 2024 00:03:15 +0100 Subject: [PATCH] Refactor: reverted changes --- .../engine/notarization/slotnotarization/manager.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/protocol/engine/notarization/slotnotarization/manager.go b/pkg/protocol/engine/notarization/slotnotarization/manager.go index 6dd556d6b..2808d38ff 100644 --- a/pkg/protocol/engine/notarization/slotnotarization/manager.go +++ b/pkg/protocol/engine/notarization/slotnotarization/manager.go @@ -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 }