Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-develope committed Nov 13, 2023
1 parent 0f462be commit 9f876dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions store/snapshots/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ func (m *Manager) GetSnapshotBlockRetentionHeights() int64 {

// Create creates a snapshot and returns its metadata.
func (m *Manager) Create(height uint64) (*types.Snapshot, error) {
if m == nil {
return nil, errorsmod.Wrap(store.ErrLogic, "Snatshot Manager is nil")
}

err := m.begin(opSnapshot)
if err != nil {
return nil, err
Expand Down

0 comments on commit 9f876dc

Please sign in to comment.