-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix(taiko-client): skip responding on empty L1Origin signature and fix misleading return #20712
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
base: main
Are you sure you want to change the base?
fix(taiko-client): skip responding on empty L1Origin signature and fix misleading return #20712
Conversation
…x misleading return
|
@claude plz review |
Codecov Report❌ Patch coverage is
Additional details and impacted files
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
@claude plz review. |
|
Claude finished @davidtaikocha's task —— View job Code ReviewTasks
SummaryThe PR fixes error handling semantics in two P2P message handlers. The changes are correct and improve code clarity. The modifications ensure that missing local prerequisites (empty L1 origin signatures) are treated as non-error conditions rather than protocol errors, aligning with P2P expectations. Changes Review1.
|
This change fixes a misleading return path in OnUnsafeL2Request where an empty L1Origin signature triggered return err even though err was nil at that point. It now explicitly returns nil, making the intent (drop response without handler error) clear and robust.
Additionally, OnUnsafeL2EndOfSequencingRequest now mirrors this behavior by checking for an empty L1Origin signature and returning nil early. This ensures consistent response handling and avoids attempting to publish responses without a valid signature.
These changes align handler semantics with P2P expectations: missing local prerequisites should not surface as protocol errors, but responses should be withheld.