---
title: Co-Op Close V2
---
stateDiagram-v2
state CoopCloseV2 {
[*] --> ChannelActive
ChannelActive --> ShutdownPending: send_shutdown
ChannelActive --> ShutdownPending: shutdown_received
ShutdownPending --> ChannelFlushing: shutdown_received
ShutdownPending --> ChannelFlushing: shutdown_complete
ChannelFlushing --> ClosingNegotiation: channel_flushed
state ClosingNegotiation {
direction TB
[*] --> LocalCloseStart
[*] --> RemoteCloseStart
LocalCloseStart --> LocalOfferSent: send_offer
LocalOfferSent --> ClosePending: local_sig_received
RemoteCloseStart --> ClosePending: offer_received
}
ClosingNegotiation --> ShutdownPending: send_shutdown
ClosingNegotiation --> ShutdownPending: shutdown_received
ClosingNegotiation --> CloseFin: txn_confirmation
}
-
-
Save Roasbeef/acc4ff51b9dff127230228a05553cdfe to your computer and use it in GitHub Desktop.
co-op-close-v2
This is just Mermaid, GitHub has support for rendering now, it's pretty
great
…On Tue, Jan 30, 2024, 10:42 AM ziggieXXX ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
which tool do you use to build this flow-chart ?
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/Roasbeef/acc4ff51b9dff127230228a05553cdfe#gistcomment-4860471>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHTWLXADLREHTE6QEW34ETYRE5JHBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTENZTGI2TKNZSU52HE2LHM5SXFJTDOJSWC5DF>
.
You are receiving this email because you authored the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
which tool do you use to build this flow-chart ?