mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
fsm: harden diagram generation
This commit is contained in:
parent
1d5b1c564a
commit
e77a1ab634
3 changed files with 39 additions and 28 deletions
|
|
@ -2,20 +2,28 @@
|
|||
stateDiagram-v2
|
||||
[*] --> Init: OnServerRequest
|
||||
Confirmed
|
||||
Confirmed --> SpendBroadcasted: OnSpendBroadcasted
|
||||
Confirmed --> TimedOut: OnTimedOut
|
||||
Confirmed --> Confirmed: OnError
|
||||
Confirmed --> Locked: OnLocked
|
||||
Confirmed --> Confirmed: OnRecover
|
||||
Confirmed --> Spent: OnSpent
|
||||
Confirmed --> TimedOut: OnTimedOut
|
||||
Failed
|
||||
Init
|
||||
Init --> WaitForConfirmation: OnBroadcast
|
||||
Init --> Failed: OnRecover
|
||||
Init --> Failed: OnError
|
||||
SpendBroadcasted
|
||||
SpendBroadcasted --> SpendConfirmed: OnSpendConfirmed
|
||||
SpendConfirmed
|
||||
Init --> Failed: OnRecover
|
||||
Locked
|
||||
Locked --> Locked: OnError
|
||||
Locked --> Locked: OnRecover
|
||||
Locked --> Spent: OnSpent
|
||||
Locked --> TimedOut: OnTimedOut
|
||||
Locked --> Confirmed: OnUnlocked
|
||||
Spent
|
||||
Spent --> Spent: OnSpent
|
||||
TimedOut
|
||||
TimedOut --> TimedOut: OnTimedOut
|
||||
WaitForConfirmation
|
||||
WaitForConfirmation --> WaitForConfirmation: OnRecover
|
||||
WaitForConfirmation --> Confirmed: OnConfirmed
|
||||
WaitForConfirmation --> WaitForConfirmation: OnRecover
|
||||
WaitForConfirmation --> TimedOut: OnTimedOut
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue