-
Notifications
You must be signed in to change notification settings - Fork 363
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
Use finality_blocks
instead of reorg_period
in validator
#532
Comments
Hi, |
hey @ritikBhandari, amazing please do! I'm happy to answer any questions you may have |
Sure. Thanks! |
Hey @ritikBhandari, just wondering if you've taken a stab at this? |
Related is also the confirmations field in |
hey @mattiecnvr is this still in review? |
@avious00 |
I think this would make sense to do with #2215 |
This ended up changing a bit with the new config shapes and we are now using reorg period but it is the one defined in the common chain metadata. |
…to edge cases (#2836) ### Description * #532 wasn't actually fully closed out - finality_blocks was used still for indexing. Sadly testnet4 infra wasn't configuring finality blocks anymore, so we weren't indexing only finalized blocks. Moved fully to reorg_period * Refactored `checkpoint_submitter` in light of races revealed by the above ^ problem. It used to assume that message indexing and the `latest_checkpoint()` call would align with one another, and wasn't resilient to the tree already being past the correctness checkpoint. A couple situations were possible before that aren't now: a. Indexing is ahead of the latest_checkpoint() call, which will result in tree ingesting the new indexed messages and the tree being ahead of the correctness checkpoint :( b. It's possible for the tree() call that constructs the tree initially to be made against a block that's after the next latest_checkpoint() call, which would result in the tree being ahead of the correctness checkpoint from the very beginning :( ### Drive-by changes removed a function that wasn't being used anymore ### Related issues #532 ### Backward compatibility Removes finality blocks entirely ### Testing Builds, e2e
In #504,
finality_blocks
was added for each ChainConfig. Thereorg_period
in the Validator agent settings is basically a duplicate of this-- we should removereorg_period
in favor offinality_blocks
and update theinfra
package accordinglyThe text was updated successfully, but these errors were encountered: