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

fix: remove updater blocktime x finality latency between updates #120

Open
luketchang opened this issue Apr 24, 2022 · 0 comments
Open

fix: remove updater blocktime x finality latency between updates #120

luketchang opened this issue Apr 24, 2022 · 0 comments
Labels
fix touches-critical-code Touches safety-critical code (updater, watcher)

Comments

@luketchang
Copy link
Collaborator

luketchang commented Apr 24, 2022

Problem

  • Currently, updater must wait till its last update becomes final to move onto producing a new one (does so by re-reading its own update on a timelag)
  • This incurs a blocktime x finality latency for between each update
  • If you dispatch a message that reaches finality just after the last update was submitted, you have a potentially 2 x (blocktime x finality) latency

Solution

  • We know that the all updates produced in db will be valid chain, thus the new_root of the prev produced update will always be the old_root of the next produced update
  • UpdateProducer should immediately retrieve next root to build off of from produced updates db
@luketchang luketchang added fix touches-critical-code Touches safety-critical code (updater, watcher) and removed touches-critical-code Touches safety-critical code (updater, watcher) labels Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix touches-critical-code Touches safety-critical code (updater, watcher)
Projects
None yet
Development

No branches or pull requests

1 participant