Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plutip - CannotFindTimeInEraSummaries #1057

Closed
codybutz opened this issue Sep 20, 2022 · 5 comments
Closed

Plutip - CannotFindTimeInEraSummaries #1057

codybutz opened this issue Sep 20, 2022 · 5 comments
Labels
bug Something isn't working critical plutip plutip integration (#426)

Comments

@codybutz
Copy link

Hello!

I am experiencing an error when trying to balance a TX against the Plutip environment that has a UpperBound on the validity range.

Error: (CannotConvertPOSIXTimeRange (Interval { from: (LowerBound NegInf true), to: (UpperBound (Finite (POSIXTime (fromString "1663706074400"))) true) }) (CannotFindTimeInEraSummaries (AbsTime (fromString "190400"))))

You can find an example of the code here: https://github.com/codybutz/ctl-examples/tree/plutip-posix-time-error and can be tested with: nix build .#checks.x86_64-linux.ctl-scaffold-plutip-test -L

I'm unsure honestly at the root cause of this error, however I have a slight feeling it has something to do with the faster slots being used by in the Plutip environment.

@klntsky
Copy link
Member

klntsky commented Sep 21, 2022

Thanks for reporting!
This is a problem with Plutip we are aware of.

@klntsky klntsky added bug Something isn't working critical labels Sep 21, 2022
@klntsky
Copy link
Member

klntsky commented Sep 21, 2022

The root cause is that eraSummaries are ill-formed.

@ngua ngua added the plutip plutip integration (#426) label Sep 29, 2022
@klntsky
Copy link
Member

klntsky commented Dec 20, 2022

Update:
They are no more ill-formed, they just span too short into the future. It's possible to change PlutipConfig's slotLength now

@KristianBalaj
Copy link
Contributor

KristianBalaj commented Mar 1, 2023

@klntsky
Just to refresh this issue on current master, we're still experiencing that error.
However, we have a workaround - setting the epochSize here


The default value seems to be 80 seconds, when we override it with 432000 (same as mainnet, the problem goes away).

@klntsky
Copy link
Member

klntsky commented Oct 5, 2023

Setting epochSize is a valid fix for this problem.

@klntsky klntsky closed this as completed Oct 5, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in cardano-transaction-lib Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical plutip plutip integration (#426)
Projects
Development

No branches or pull requests

4 participants