Using a TUI timestamp parameter for prices/balances submissions #502
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR refactors prices and balances submissions previously based on locating event submissions to define the next submission time. The code now introduced a new TUI parameter that will be used to calculate when the next submission is due.
The default value for the new parameter is 1713420000 (April 18, 2024 6:00:00 AM UTC). Considering the 24-hour submission interval (on mainnet), after the Houston launch, oDAO nodes would submit new prices/balances every day for the block at 6:00:00 AM UTC (or, in case of a missed slot, the last proposed block before this time). This makes the submission process in a predictable way, as mandate by RPIP-35, and gets rid of event issues, especially during the transition to Houston.