Most Lightning payments fail at least once before succeeding. Good software treats failure as information, not as a dead end.
Complete Step 1 // Required reading in the study plan above, then continue here.
Step 2 — Core idea: transient vs permanent
Naive “try once and show error” UX makes Lightning feel broken. Smart retries with fee budgets make it feel instant.
| Class | Examples | Action |
|---|---|---|
| Transient | Imbalance, unknown liquidity, tight fees | Update scores / route; retry within budget |
| Permanent | Invalid invoice, unknown peer, exhausted expiry | Stop; surface clear error |
Loading diagram…
Done when: You can triage one failure into transient vs permanent without guessing.
Step 3 — Triage a failure (lab)
Cause or simulate a failure. Classify it. State retry policy and idempotency key.
Done when: Lab evidence (failure + classification + idempotency + source) is complete.
Next lesson
Lightning Attack Surface — congestion, probing, watchtowers, and CVE lessons.