Skip to content

Instantly share code, notes, and snippets.

@ariard
Created July 10, 2019 14:14
Show Gist options
  • Save ariard/8f6be390e54785af324e4dfa682c24a9 to your computer and use it in GitHub Desktop.
Save ariard/8f6be390e54785af324e4dfa682c24a9 to your computer and use it in GitHub Desktop.
All errors are my own
- - - - - - - - -
/ /
/ BLOCKCHAIN /
/ /
- - - - - - - - -
| __________________
| blocks __|_________#3____ |
___|__________ __|________#2___ | |
| | | #1 | |___|
|ChainInterface| |ChannelMonitors |___|
|______________| |________________|
| \ / _____________
| \ blocks / txns _|_____#3__ |
| \ ________________/__ __|____#2__ | |
| | | | #1 | |__|
| | ManyChannelMonitor | | Channels |___|
| |____________________| ^|__________|
| ^ /
| \ /
| \ updates / msgs
| blocks \ /
|---------------> _v_____________/
________________ | |
| | key | | \
| KeysInterface |---------->| ChannelManager | \
|________________| | |^ \
|________________| \ \ msgs - - - - - - - - -
^ \ \ _____________ / /
| \ \-->| | blobs / LN NETWORK /
| \ | PeerHandler |-----------> / /
| \___ |_____________| - - - - - - - - -
route | /
| /
____|____ / msgs
| | /
| Router |<-----------
|_________|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment