-
Notifications
You must be signed in to change notification settings - Fork 73
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: avail submission was stuck waiting for finalization #438
fix: avail submission was stuck waiting for finalization #438
Conversation
Codecov Report
@@ Coverage Diff @@
## main #438 +/- ##
==========================================
- Coverage 52.55% 52.50% -0.05%
==========================================
Files 94 94
Lines 14404 14421 +17
==========================================
+ Hits 7570 7572 +2
- Misses 5760 5774 +14
- Partials 1074 1075 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
We only want to panic if the err is from a configuration error (otherwise we keep trying to submit and emit health events).
Seems like you changed the errors returned that they can't be detected as ErrBroacastConfigError
so this part will never execute.
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.
We only want to panic if the err is from a configuration error (otherwise we keep trying to submit and emit health events) (line 260)
Seems like you changed the errors returned from broadcastTx
that they can't be detected as ErrBroacastConfigError
so this part will never execute.
I'll revert it back, but few things to notice,
|
we're only panicing for configuration/bugs errors not for network errors (i.e base layer unavailable). both for SL and DA. you can see for example in the SL we're panicing if can't find a key, not passing validation etc. We don't panic for DA if we failed to send due to network error. same as we don't panic for SL if we failed to send due to network error. |
PR Standards
Opening a pull request should be able to meet the following requirements
For Author:
godoc
commentsFor Reviewer:
After reviewer approval: