You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get last block -> get epoch for a PredictionContract, then submit trueval for past epoch
But this poses a couple of problems:
what if RPC connection drops for 10 mins?
what if our sources (binance, kraken, etc) are failing for 10 mins?
what if our code fails and docker is restarted?
This can lead to a lot of epochs without truevals, hurting the rewards.
Proposal:
We should use subgraph and always get a list of epochs, per each PredictionContract, without a submitted trueval. (We have epoch status). Then submit truevals for those epochs.
The text was updated successfully, but these errors were encountered:
trentmc
changed the title
Submitting truevals
Make submitting truevals more reliable
Jul 30, 2023
trentmc
changed the title
Make submitting truevals more reliable
Some epochs might not get truevals; fix this
Jul 30, 2023
trizin
transferred this issue from oceanprotocol-archive/pdr-trueval
Aug 1, 2023
Right now, we use a simple logic in main.py:
But this poses a couple of problems:
This can lead to a lot of epochs without truevals, hurting the rewards.
Proposal:
We should use subgraph and always get a list of epochs, per each PredictionContract, without a submitted trueval. (We have epoch status). Then submit truevals for those epochs.
The text was updated successfully, but these errors were encountered: