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

Handle Finalized Deposit Insertion Better #10517

Merged
merged 2 commits into from
Apr 13, 2022
Merged

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Apr 13, 2022

What type of PR is this?

Bug Fix

What does this PR do? Why is it needed?

Following on from #10511 , we harden our finalized deposit insertion method here. Some edge cases can be hit in the event the node is still waiting to fetch new deposit logs from its eth1 node and is processing blocks normally. This makes sure that we never revert the trie back to an older state, and only finalize as many deposits as there are stored in our deposit cache.

Which issues(s) does this PR fix?

Resolves #10156 and fixes #10120

Other notes for review

@nisdas nisdas requested a review from a team as a code owner April 13, 2022 00:44
@nisdas nisdas requested review from potuz, james-prysm and uncdr April 13, 2022 00:44
@rkapka rkapka merged commit 1b6adca into develop Apr 13, 2022
@rkapka rkapka deleted the hardenFinalizedInsertion branch April 13, 2022 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High High priority item
Projects
None yet
2 participants