4

I have made a sample scenario:

  1. Start auction with a deadline of +10 slots
  2. wait for 12 slots
  3. Bid
  4. Wait for 1 slot to allow TX to be processed

The third transaction is not shown - which is understandable since the transaction should not be happening.

My question is: how can I figure out what was wrong, and why did the TX was not made. There is no error log in the log/trace.

1 Answer 1

0

Did you do this in repl before simulation?

import Data.Default
import Ledger.TimeSlot
slotToEndPOSIXTime def 10

The last command will give you the correct value for spDeadline after 10 slots.

3
  • What exatly the cabal repl does? Jan 17, 2022 at 17:21
  • Yes I have. I put in the correct timeslot, and deliberately went over the deadline. The TX did not go through, but I could find any reference (log/trace) to the reason the TX failed Jan 18, 2022 at 10:35
  • What about waiting for 2 slots at the end?
    – kindofdev
    Feb 16, 2022 at 17:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.