diff --git a/server/timestamp/timestamp.go b/server/timestamp/timestamp.go index 4116f8ab7e..2cf3628f5c 100644 --- a/server/timestamp/timestamp.go +++ b/server/timestamp/timestamp.go @@ -97,11 +97,7 @@ func timestampExpired(ts *data.SignedTimestamp) bool { func snapshotExpired(ts *data.SignedTimestamp, snapshot []byte) bool { // If this check failed, it means the current snapshot was not exactly what we expect // via the timestamp. So we can consider it to be "expired." - if err := data.CheckHashes(snapshot, ts.Signed.Meta["snapshot"].Hashes); err != nil { - return true - } - - return false + return data.CheckHashes(snapshot, ts.Signed.Meta[data.CanonicalSnapshotRole].Hashes) != nil } // CreateTimestamp creates a new timestamp. If a prev timestamp is provided, it