Questions tagged [time]
The time tag has no usage guidance.
9
questions
0
votes
1
answer
41
views
How to have a contract on chain for extended periods of time?
In PPP Larz explains that there's a limit to how long a contract can remain on chain, what is that limit and how do I go about extending it?
2
votes
1
answer
349
views
Whats the function to get the current time in Plutus?
Im using the time module in the ledger class to do some custom validation logic, but everything is done as intervals and I cant find the function that gets the current time. What is it?
2
votes
1
answer
114
views
How precise is the time inside a plutus script?
It is a known fact that you can calculate time inside a plutus validator script by looking at the txInfoValidRange attribute. Now, since this value is a range and not an exact time, it makes me wonder ...
0
votes
2
answers
82
views
Diagnosing a POSIXTime discrepancy
My computer's date command is returning a timestamp wildly different from what testnet wants.
Using this formula,
> slotToEndPOSIXTime testnetConf 55047601
POSIXTime {getPOSIXTime = 1651015217999}
...
4
votes
1
answer
153
views
How to implement Vesting smartcontract with time period longer than 36 hours?
Context
In third weeks plutus pioneer lecture lars said that Vesting period shouldn't be longer than 36 hours. He argued that this is because time is calculated in slots on-chain and that this ...
0
votes
1
answer
59
views
How to PreSign a transaction
im trying to figure out how to sign a smart contract (SC) and have it put on-chain, where it waits until its validation logic returns True.
Edit 1:
To clarify what I mean by signing is the private key ...
3
votes
1
answer
128
views
Can you specify an upper and lower bound for the validity period of a transaction?
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 $ ...
2
votes
2
answers
145
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 ...
18
votes
2
answers
792
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 ...