-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fallback For Deposit Trie Creation #8869
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #8869 +/- ##
===========================================
- Coverage 60.71% 60.40% -0.32%
===========================================
Files 527 527
Lines 37086 37376 +290
===========================================
+ Hits 22518 22577 +59
- Misses 11345 11565 +220
- Partials 3223 3234 +11 |
valid, err := vs.validateDepositTrie(depositTrie, canonicalEth1Data) | ||
// Log an error here, as even with rebuilding the trie, it is still invalid. | ||
if !valid { | ||
log.Errorf("Rebuilt deposit trie is invalid: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't err
be returned from the function instead of just logging? We essentially have a problem with generating the deposit trie.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The purpose is to log more strongly here, even if we fail creating a valid deposit trie we can still propose a block( as long as there are no deposits)
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
How long does a rebuild of the deposit trie take in mainnet? Proposal contexts are given a short TTL, if this routine takes more than a full slot then it may fail entirely. |
What type of PR is this?
Bug Fix
What does this PR do? Why is it needed?
Which issues(s) does this PR fix?
N.A
Other notes for review