fix: error severity for invalid FC state -> reset#2551
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
| #[error("Invalid forkchoice state")] | ||
| ForkchoiceStateInvalid, |
There was a problem hiding this comment.
Missing doc comment on this variant. Every other variant in EngineBuildError has a /// doc comment, and the corresponding variant in SynchronizeTaskError (InvalidForkchoiceState) has one too. Per the project conventions (CLAUDE.md: no #![allow(missing_docs)], fix the underlying issue), this will likely trigger a missing_docs lint if it's enabled.
Also, minor naming inconsistency: SynchronizeTaskError uses InvalidForkchoiceState while this uses ForkchoiceStateInvalid. Not blocking, but worth considering aligning with the existing convention.
| #[error("Invalid forkchoice state")] | |
| ForkchoiceStateInvalid, | |
| /// The forkchoice state is invalid. | |
| #[error("Invalid forkchoice state")] | |
| ForkchoiceStateInvalid, |
849fceb to
14dda10
Compare
14dda10 to
9581dfc
Compare
refcell
left a comment
There was a problem hiding this comment.
Took an initial pass and this LGTM
| } | ||
|
|
||
| #[tokio::test] | ||
| #[ignore = "flaky: depends on live mainnet bootstrap nodes responding"] |
There was a problem hiding this comment.
This is failing rn, will open an issue to fix this flake in a forward PR.
Review SummaryOverall: This PR looks correct. The change properly adds What was reviewed
FindingsNo new issues beyond what the existing inline comment already raised (naming inconsistency: The error handling logic in
|
Change the error severity for an invalid forkchoice state error to Reset so the engine resets if we get this error. This matches
SynchronizationTaskandop-nodebehavior.Disables flaky test
test_online_discv5_driver_bootstrap_mainnet.