|
| 1 | +```mermaid |
| 2 | +stateDiagram-v2 |
| 3 | +[*] --> Init: OnStart |
| 4 | +BuildHtlc |
| 5 | +BuildHtlc --> PushPreimage: OnHtlcSigReceived |
| 6 | +BuildHtlc --> InstantFailedOutFailed: OnError |
| 7 | +BuildHtlc --> InstantFailedOutFailed: OnRecover |
| 8 | +FailedHtlcSweep |
| 9 | +FinishedCoop |
| 10 | +Init |
| 11 | +Init --> InstantFailedOutFailed: OnRecover |
| 12 | +Init --> SendPaymentAndPollAccepted: OnInit |
| 13 | +Init --> InstantFailedOutFailed: OnError |
| 14 | +InstantFailedOutFailed |
| 15 | +PublishHtlc |
| 16 | +PublishHtlc --> WaitForHtlcSweepConfirmed: OnHtlcBroadcasted |
| 17 | +PublishHtlc --> FailedHtlcSweep: OnError |
| 18 | +PublishHtlc --> PublishHtlc: OnRecover |
| 19 | +PushPreimage |
| 20 | +PushPreimage --> WaitForSweeplessSweepConfirmed: OnSweeplessSweepBroadcasted |
| 21 | +PushPreimage --> InstantFailedOutFailed: OnError |
| 22 | +PushPreimage --> PublishHtlc: OnErrorPublishHtlc |
| 23 | +PushPreimage --> PushPreimage: OnRecover |
| 24 | +SendPaymentAndPollAccepted |
| 25 | +SendPaymentAndPollAccepted --> BuildHtlc: OnPaymentAccepted |
| 26 | +SendPaymentAndPollAccepted --> InstantFailedOutFailed: OnError |
| 27 | +SendPaymentAndPollAccepted --> InstantFailedOutFailed: OnRecover |
| 28 | +WaitForHtlcSweepConfirmed |
| 29 | +WaitForHtlcSweepConfirmed --> FinishedHtlcPreimageSweep: OnHtlcSwept |
| 30 | +WaitForHtlcSweepConfirmed --> WaitForHtlcSweepConfirmed: OnRecover |
| 31 | +WaitForHtlcSweepConfirmed --> FailedHtlcSweep: OnError |
| 32 | +WaitForSweeplessSweepConfirmed |
| 33 | +WaitForSweeplessSweepConfirmed --> FinishedCoop: OnSweeplessSweepConfirmed |
| 34 | +WaitForSweeplessSweepConfirmed --> WaitForSweeplessSweepConfirmed: OnRecover |
| 35 | +WaitForSweeplessSweepConfirmed --> PublishHtlc: OnError |
| 36 | +``` |
0 commit comments