Skip to main content

Questions tagged [slottime]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
84 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} ...
3 votes
1 answer
76 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 ...
1 vote
1 answer
61 views

Plutus Cohort 3: slot count why 11 and not 14

I ran the auction exactly as shown. The slot count at the closing (after the additional wait) comes up to 14, not 11, as shown in the video. (if I add all the waits, the result is, indeed, 14). If the ...
0 votes
0 answers
25 views

Why is "Current Time" (slot) validating script logic when its interval is not contained within the deadline interval (as defined in script logic)?

I have locked my "deadline" (which is set into the future) in "POSIXTime" to the On-Chain Datum of my contract. To unlock it, I am using the "current time" (aka current ...
0 votes
1 answer
56 views

How does the cardano network handle network latency?

I read that when a node receives a block, the node verifies that the slot number is the current one. If the slot changes every second, what if a block is generated by some node A, but some other node ...
0 votes
1 answer
42 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
368 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?
10 votes
3 answers
1k 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-...
7 votes
2 answers
536 views

How to convert posixTime to slot number on Cardano Testnet

I'd like to obtain the slot number corresponding to a posixtime on Cardano Testnet. For example, this might be useful if you need to set a slot number in cardano-cli, say building a transaction: ...
0 votes
0 answers
13 views

How to Ensure Constant Timing in Contracts Given Slots can be Changed?

The amount of time a slot represents can be changed. This means if I code a smart contract that has some sort of waiting function for N slots, the amount of time it waits for will change with the slot ...
0 votes
1 answer
121 views

How to calculate the slot time of a given date? [closed]

I would like to know how to calculate the slot time for a particular date(e.g. 1/1/2023).
4 votes
1 answer
161 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 ...
2 votes
1 answer
283 views

When was the slot duration set to 1 sec on Cardano Testnet?

I'd like to know the exact date when the slot duration was set to 1 sec on Cardano Testnet. Thanks in advance!
3 votes
1 answer
230 views

How many slots did Byron era (testnet) have?

I was wondering the number of slots the Byron era (testnet) had or the slot number when Byron finished. The only info I've been able to find is systemStart": "2019-07-24T20:20:16Z" ...
4 votes
1 answer
1k views

How does Cardano execute real time transactions if block time is 20 seconds?

New to the crypto space, please correct me if I misunderstood the meaning of block time. When a cardano node submits a transaction, it goes to a local mempool and submitted on the blockchain for ...
2 votes
2 answers
157 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
878 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 ...