Questions tagged [slottime]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
38 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} ...
user avatar
  • 313
0 votes
0 answers
9 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 ...
user avatar
0 votes
1 answer
59 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).
user avatar
0 votes
1 answer
76 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 ...
user avatar
5 votes
2 answers
249 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: ...
user avatar
  • 1,124
2 votes
1 answer
150 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!
user avatar
  • 1,124
3 votes
1 answer
154 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" ...
user avatar
  • 1,124
3 votes
1 answer
321 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 ...
user avatar
  • 133
1 vote
1 answer
41 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 ...
user avatar
0 votes
0 answers
29 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 (...
user avatar
1 vote
2 answers
86 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 ...
user avatar
2 votes
1 answer
49 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 ...
user avatar
  • 56
8 votes
2 answers
636 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-...
user avatar
  • 639
18 votes
2 answers
523 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 ...
user avatar