Commit 5d05375
committed
fix(tempo/server): log tx hash + receipt detail on chain reverts
The patched chargeserver.verifyTransaction currently swallows the
underlying tx hash on broadcast and the revert reason on a non-0x1
receipt. Operators investigating "transaction reverted" failures have
no way to inspect the failed tx without code-level instrumentation.
This is the same diagnostic gap PR #34 (this PR) closed for the
keychain signature path; extending it to broadcast/receipt:
- Log txHash on successful broadcast (and on SendRawTransaction
failure, with the underlying error).
- On a non-0x1 receipt: log status / blockNumber / gasUsed /
revertReason and the full receipt map. Surface the revert
reason in the response body when the chain provides one.
- Log fetchReceipt errors with the txHash for context.
Receipt bodies are chain-public; no secrets exposed. Production cost
is one extra log line per successful broadcast plus a multi-field log
on failure.
Mirrored from blockparty-global/sre-services PR #190 + #194.1 parent d1bcbc5 commit 5d05375
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
| 455 | + | |
455 | 456 | | |
| 457 | + | |
456 | 458 | | |
457 | 459 | | |
| 460 | + | |
458 | 461 | | |
459 | 462 | | |
460 | 463 | | |
| |||
539 | 542 | | |
540 | 543 | | |
541 | 544 | | |
542 | | - | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
543 | 559 | | |
544 | 560 | | |
545 | 561 | | |
| |||
0 commit comments