Commit 700e240
fix(rpc): address review feedback on debug endpoints
- Document partial-move pattern in get_raw_receipts
- Consolidate duplicate -32602 error code arms in DebugError
- Fix resolve_header error mapping: use Resolve(e) instead of
BlockNotFound(id) to preserve the distinction between "block not
found" (-32001) and "storage layer failed" (-32000). The
resolve_error_message helper already sanitizes DB errors to the
opaque "server error" string, so no internals are leaked.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 53f6d59 commit 700e240
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
390 | 393 | | |
391 | 394 | | |
392 | 395 | | |
| |||
438 | 441 | | |
439 | 442 | | |
440 | 443 | | |
441 | | - | |
| 444 | + | |
442 | 445 | | |
443 | 446 | | |
444 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
0 commit comments