Questions tagged [slottime]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Working with time in tests

I'm trying to write some tests for EnglishAuction, from Plutus pioneers #1. I want to write a test that first starts an auction and then tries to close an auction before the deadline has passed (...
1
vote
2answers
49 views

Is there a way for a validator to get the current time?

Is it possible for a validator to get the current time without it being passed in via the redeemer? My validator is heavily dependent on the time being correct so it would probably be a bad design ...
2
votes
1answer
30 views

Constraints.mustValidateIn in a StateMachine

I have an issue with Constraints.mustValidateIn in a StateMachine. In the case using Interval.to deadline everything works as expected. But in the case: Interval.from deadline the constraint is never ...
7
votes
2answers
291 views

Calculate timestamp from slot

Is it possible to calculate a timestamp from a slot no? Since one slot is one second it should be pretty easy. But... The current slot now (Tue 18 May 2021 05:46:04 PM CEST) is 29786450. In mainnet-...
17
votes
2answers
303 views

Is there a maximum number of transactions a block can hold?

If the network is under heavy use and transactions are being recorded in these blocks faster than normal, is there a cap on the size of the block? Perhaps the rule is 20 second slot time, or a full ...