Commit 35a8bd6
Add NodeError::is_expected() and WARN logging for unexpected validator errors
Add an `is_expected()` method to `NodeError` that classifies errors as
normal protocol flow (BlobsNotFound, EventsNotFound, WrongRound, etc.)
vs unexpected issues (network errors, validator misbehavior). This
mirrors the `is_local()` pattern used on the server side.
Use this in the updater's error escape paths (send_confirmed_certificate,
send_validated_certificate, send_block_proposal, request_timeout) to
log unexpected errors at WARN while keeping expected ones at DEBUG.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 986daa2 commit 35a8bd6
2 files changed
+65
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
343 | 365 | | |
344 | 366 | | |
345 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
284 | 295 | | |
285 | 296 | | |
286 | 297 | | |
| |||
325 | 336 | | |
326 | 337 | | |
327 | 338 | | |
328 | | - | |
| 339 | + | |
329 | 340 | | |
330 | 341 | | |
331 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
332 | 353 | | |
333 | 354 | | |
334 | 355 | | |
| |||
348 | 369 | | |
349 | 370 | | |
350 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
351 | 380 | | |
352 | 381 | | |
353 | 382 | | |
| |||
606 | 635 | | |
607 | 636 | | |
608 | 637 | | |
609 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
610 | 649 | | |
611 | 650 | | |
612 | 651 | | |
| |||
0 commit comments