mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
bolt: update to BOLT spec changes (extract format + type specifications)
updates the bolt version to 6639cef095a2ecc7b8f0c48c6e7f2f906fbfbc58. this requires us to use the new bolt parser at generate-bolt.py and updates to all of the type specifications (ie. from u8 -> byte)
This commit is contained in:
committed by
Rusty Russell
parent
6c240ab589
commit
5c07afac7d
@@ -42,9 +42,9 @@ enum route_next_case {
|
||||
*
|
||||
* 1. type: `hops_data`
|
||||
* 2. data:
|
||||
* * [`1`:`realm`]
|
||||
* * [`32`:`per_hop`]
|
||||
* * [`32`:`HMAC`]
|
||||
* * [`byte`:`realm`]
|
||||
* * [`32*byte`:`per_hop`]
|
||||
* * [`32*byte`:`HMAC`]
|
||||
* * ...
|
||||
* * `filler`
|
||||
*
|
||||
@@ -59,10 +59,10 @@ enum route_next_case {
|
||||
*
|
||||
* 1. type: `per_hop` (for `realm` 0)
|
||||
* 2. data:
|
||||
* * [`8`:`short_channel_id`]
|
||||
* * [`8`:`amt_to_forward`]
|
||||
* * [`4`:`outgoing_cltv_value`]
|
||||
* * [`12`:`padding`]
|
||||
* * [`short_channel_id`:`short_channel_id`]
|
||||
* * [`u64`:`amt_to_forward`]
|
||||
* * [`u32`:`outgoing_cltv_value`]
|
||||
* * [`12*byte`:`padding`]
|
||||
*/
|
||||
struct hop_data {
|
||||
u8 realm;
|
||||
|
||||
Reference in New Issue
Block a user