I want a transaction to only be valid for a certain period of time relative to some specified start time. I thought that maybe I could use Constraints.mustValidateIn (interval firstInterval $ firstInterval + 10000)
, but this has failed to validate. It seems that it does not matter what the upper bound is, because it always fails... unless its positive infinity. So this: Constraints.mustValidateIn (from $ firstInterval)
always works.
In the docs, Constraints.mustValidateIn
has a footnote specifying this: "@mustValidateIn r@ requires the transaction's time range to be contained in @r@."
So I guess what I am asking is what is a transactions time range? And can it be manipulated to fit this scenario?
Thanks!