mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
handshake: update for BOLT 8 latest revision.
This now matches commit fc4846a27bf420c591ba0b024cc34972816913c7, and fixes "make check-source". Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -400,7 +400,7 @@ static void act_one_responder(struct handshake *h, int fd, struct pubkey *re)
|
|||||||
* * Read _exactly_ `50-bytes` from the network buffer.
|
* * Read _exactly_ `50-bytes` from the network buffer.
|
||||||
*
|
*
|
||||||
* * Parse out the read message (`m`) into `v = m[0]`, `re =
|
* * Parse out the read message (`m`) into `v = m[0]`, `re =
|
||||||
* m[1:34]` and `c = m[43:]`
|
* m[1:33]` and `c = m[34:]`
|
||||||
* * where `m[0]` is the _first_ byte of `m`, `m[1:33]` are the
|
* * where `m[0]` is the _first_ byte of `m`, `m[1:33]` are the
|
||||||
* next `33` bytes of `m` and `m[34:]` is the last 16 bytes of
|
* next `33` bytes of `m` and `m[34:]` is the last 16 bytes of
|
||||||
* `m`
|
* `m`
|
||||||
@@ -611,8 +611,8 @@ static void act_two_initiator(struct handshake *h, int fd, struct pubkey *re)
|
|||||||
*
|
*
|
||||||
* * Read _exactly_ `50-bytes` from the network buffer.
|
* * Read _exactly_ `50-bytes` from the network buffer.
|
||||||
*
|
*
|
||||||
* * Parse out the read message (`m`) into `v = m[0]`, `re = m[1:34]`
|
* * Parse out the read message (`m`) into `v = m[0]`, `re = m[1:33]`
|
||||||
* and `c = m[43:]`
|
* and `c = m[34:]`
|
||||||
* * where `m[0]` is the _first_ byte of `m`, `m[1:33]` are the
|
* * where `m[0]` is the _first_ byte of `m`, `m[1:33]` are the
|
||||||
* next `33` bytes of `m` and `m[34:]` is the last 16 bytes of
|
* next `33` bytes of `m` and `m[34:]` is the last 16 bytes of
|
||||||
* `m`
|
* `m`
|
||||||
@@ -821,7 +821,7 @@ static void act_three_responder(struct handshake *h, int fd,
|
|||||||
|
|
||||||
/* BOLT #8:
|
/* BOLT #8:
|
||||||
*
|
*
|
||||||
* * Parse out the read message (`m`) into `v = m[0]`, `c = m[1:50]` and `t = m[50:]`
|
* * Parse out the read message (`m`) into `v = m[0]`, `c = m[1:49]` and `t = m[50:]`
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* BOLT #8:
|
/* BOLT #8:
|
||||||
|
|||||||
Reference in New Issue
Block a user