2
0
mirror of https://github.com/guggero/chantools synced 2024-11-11 01:10:42 +00:00
chantools/doc/rescue-flow.plantuml

39 lines
991 B
Plaintext

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