Skip to content

Commit

Permalink
fix: snapshot collector
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Dec 9, 2024
1 parent 2629bd6 commit e064c64
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/collector/snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ func NewKyveSnapshotCollector(poolId int64, chainRest string) (*KyveSnapshotColl
return nil, fmt.Errorf("found invalid runtime on snapshot pool %d: Expected = %s Found = %s", poolId, utils.RuntimeTendermintSsync, poolResponse.Pool.Data.Runtime)
}

if poolResponse.Pool.Data.CurrentKey == "" {
return nil, fmt.Errorf("pool %d is empty and has not yet archived any data", poolId)
}

var config types.TendermintSSyncConfig
if err := json.Unmarshal([]byte(poolResponse.Pool.Data.Config), &config); err != nil {
return nil, fmt.Errorf("failed to unmarshal snapshot pool config %s: %w", poolResponse.Pool.Data.Config, err)
Expand Down

0 comments on commit e064c64

Please sign in to comment.