user151: A policy script can be set to expire. For example:
{ 
  "before": 51000000
}

The number corresponds to a slot number within the epoch the script is being created. However, the current slot number will be below that number again in subsequent epochs (since slot number starts at 0 each epoch and counts up). How does a validator know that the policy script is expired when it only contains slot information but not epoch information?

user2537: The slot number does not get reset with each epoch. You can see here that the slot number is strictly increasing: https://explorer.cardano.org/en.html

151: <p>A policy script can be set to expire. For example:</p>
<pre><code>{ 
  &quot;before&quot;: 51000000
}
</code></pre>
<p>The number corresponds to a slot number within the epoch the script is being created. However, the current slot number will be below that number again in subsequent epochs (since slot number starts at 0 each epoch and counts up). How does a validator know that the policy script is expired when it only contains slot information but not epoch information?</p>
 2537: <p>The slot number does not get reset with each epoch. You can see here that the slot number is strictly increasing: <a href="https://explorer.cardano.org/en.html" rel="nofollow noreferrer">https://explorer.cardano.org/en.html</a></p>
