diff --git a/pkg/storage/storage_prunable.go b/pkg/storage/storage_prunable.go index 0760d6591..3c437eb04 100644 --- a/pkg/storage/storage_prunable.go +++ b/pkg/storage/storage_prunable.go @@ -127,11 +127,7 @@ func (s *Storage) RestoreFromDisk() { } func (s *Storage) Rollback(targetSlot iotago.SlotIndex) error { - if err := s.prunable.Rollback(s.pruningRange(targetSlot)); err != nil { - return ierrors.Wrapf(err, "failed to rollback prunable storage to slot %d", targetSlot) - } - - return nil + return s.prunable.Rollback(s.pruningRange(targetSlot)) } func (s *Storage) pruningRange(targetSlot iotago.SlotIndex) (targetEpoch iotago.EpochIndex, pruneRange [2]iotago.SlotIndex) { diff --git a/pkg/tests/loss_of_acceptance_test.go b/pkg/tests/loss_of_acceptance_test.go index abf7be665..a8bb02537 100644 --- a/pkg/tests/loss_of_acceptance_test.go +++ b/pkg/tests/loss_of_acceptance_test.go @@ -87,8 +87,6 @@ func TestLossOfAcceptanceFromGenesis(t *testing.T) { { ts.IssueBlocksAtSlots("", []iotago.SlotIndex{58, 59}, 3, "57.2", ts.Nodes("node0", "node1", "node2"), true, nil) - time.Sleep(10 * time.Second) - ts.AssertEqualStoredCommitmentAtIndex(57, ts.Nodes()...) ts.AssertLatestCommitmentSlotIndex(57, ts.Nodes()...) ts.AssertBlocksInCacheAccepted(ts.BlocksWithPrefix("59.0"), true, ts.Nodes()...)