lightningnetwork/lightning-rfc#145 changes qulite a few things around, merging the routing info with the hoppayloads and generally simplifying some things. This is my attempt at implementing the changes for lnd. I also took the liberty of flattening the onionpacket, since it was just wrapping a single MixHeader anyway.
From outside the changes should be limited to passing HopData structs instead of binary hoppayloads. These also include the short_channel_id (in serialized form since I wanted to avoud having to import lnd for it), outgoing CLTV and the forwarded amount. Finally, the next hop is now identified with the short_channel_id.
lightningnetwork/lightning-rfc#145 changes qulite a few things around, merging the routing info with the hoppayloads and generally simplifying some things. This is my attempt at implementing the changes for
lnd
. I also took the liberty of flattening the onionpacket, since it was just wrapping a single MixHeader anyway.From outside the changes should be limited to passing
HopData
structs instead of binaryhoppayloads
. These also include theshort_channel_id
(in serialized form since I wanted to avoud having to importlnd
for it), outgoing CLTV and the forwarded amount. Finally, the next hop is now identified with theshort_channel_id
.