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

[pdr-trueval] All latest txs are crashing with "Already settled" #429

Closed
trentmc opened this issue Dec 1, 2023 · 4 comments
Closed

[pdr-trueval] All latest txs are crashing with "Already settled" #429

trentmc opened this issue Dec 1, 2023 · 4 comments
Labels
Priority: Critical Type: Bug Something isn't working

Comments

@trentmc
Copy link
Member

trentmc commented Dec 1, 2023

Background

[Alex in slack]:

All latest txs are crashing with "Already settled". See:

And nr of pending truevals is increasing:

Screenshot 2023-12-01 at 10 38 09

this is mostly due to some incorrect subgraph/trueval code

Proposal:

  1. check each round before submitting (In addition to subgraph results)
  2. do it 1 tx / round (gas inefficient )

so, officially, predictoor is down

and keeps increasing:

Screenshot 2023-12-01 at 10 40 28

[Norbert]: So if pdr-buyer is up again should be fine for people to keep submitting right? The should still get the rewards. We just need to fix pdr-trueval so slots become claimable.

[Alex] : I don't know if we can fix pdr-trueval before slots are being canceled.. then it's just wasted gas

[Norbert] : uh, and when is a slot canceled? I thought that is only if price doesn't change.

[Alex] : or pdr-trueval does not submit trueval in a certain interval

[Norbert] : Ok, how can I help? I'm not familiar with df-buyer but I could try.

@trentmc trentmc added Type: Bug Something isn't working Priority: Critical labels Dec 1, 2023
@trentmc trentmc changed the title [pdr-trueval] Critical error in pdr-trueval: All latest txs are crashing with "Already settled" [pdr-trueval] All latest txs are crashing with "Already settled" Dec 1, 2023
@alexcos20
Copy link
Member

alexcos20 commented Dec 1, 2023

This PR might fix it on subgraph side
But never the less, pdr-trueval should check slots status before submit, and not trust blindly the subgraph

@trentmc
Copy link
Member Author

trentmc commented Dec 1, 2023

This PR might fix it on subgraph side But never the less, pdr-trueval should check slots status before submit, and not trust blindly the subgraph

Great stuff with the fast turnaround! Fingers crossed that this subgraph PR works.

If yes, I will revise this issue to focus on "check slots status before submit, and not trust blindly the subgraph". And aim to do this after yaml-cli2 branch is merged. (Next Mon at soonest.)

@trizin
Copy link
Contributor

trizin commented Dec 1, 2023

#431 should fix on pdr-backend trueval side

@trentmc
Copy link
Member Author

trentmc commented Dec 1, 2023

Fixed via ticket #430

@trentmc trentmc closed this as completed Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Critical Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants