@startuml (*) --> "1: Node crashed" --> "2: Rescue on-chain balance" --> "3: Recover channels using SCB" if "Pending/Open\nchannels left?" then -->[yes] "4: Install chantools" if "5: Is channel DB \navailable?" then -->[yes] "5: Create copy of channel DB" --> "6: chantools summary" --> "7: chantools rescueclosed" if "Pending/Open\nchannels left?" then -->[yes] "8: chantools forceclose" --> "9: Wait for timelocks" --> "10: chantools sweeptimelock" if "Pending/Open\nchannels left?" then -->[yes] ===MANUAL=== else -->[no] ===DONE=== endif else -->[no] ===DONE=== endif else -->[no] ===MANUAL=== --> "11: Manual intervention necessary" --> "12: Use Zombie Channel Recovery Matcher" --> (*) endif else -->[no] ===DONE=== note right Recovery complete end note endif --> (*) @enduml