1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 01:50:03 +01:00

BOLT 1: specify connection handling

see #109
This commit is contained in:
sstone 2017-02-14 16:02:44 +01:00 committed by Rusty Russell
parent 0958747fe0
commit a72b357ee6

View File

@ -9,6 +9,7 @@ The default TCP port is 9735. This corresponds to hexadecimal `0x2607`, the unic
All data fields are big-endian unless otherwise specified.
## Table of Contents
* [Connection handling and multiplexing](#connection-handling-and-multiplexing)
* [Lightning Message Format](#lightning-message-format)
* [Setup Messages](#setup-messages)
* [The `init` message](#the-init-message)
@ -17,6 +18,11 @@ All data fields are big-endian unless otherwise specified.
* [References](#references)
* [Authors](#authors)
## Connection handling and multiplexing
Implementations MUST use one connection per peer, channel messages (which include a channel id) being multiplexed over this single connection.
## Lightning Message Format
After decryption, all lightning messages are of the form: