lnd/htlcswitch/hop
Elle Mouton ad0905f10e
record+htlcswitch: convert BlindedRouteData fields to optional
For the final hop in a blinded route, the SCID and RelayInfo fields will
_not_ be set. So these fields need to be converted to optional records.

The existing BlindedRouteData constructor is also renamed to
`NewNonFinalBlindedRouteData` in preparation for a
`NewFinalBlindedRouteData` constructor which will be used to construct
the blinded data for the final hop which will contain a much smaller set
of data. The SCID and RelayInfo parameters of the constructor are left
as non-pointers in order to force the caller to set them in the case
that the constructor is called for non-final nodes. The other option
would be to create a single constructor where all parameters are
optional but I think this makes it easier for the caller to make a
mistake.
2024-07-10 09:12:39 +02:00
..
error_encryptor.go htlcswitch: convert blinded failures for blinded payments 2024-04-25 09:47:13 -04:00
forwarding_info.go htlcswitch: add NextBlinding to ForwardingInfo and set in UpdateAddHtlc 2024-04-03 08:38:24 -04:00
fuzz_test.go htlcswitch: split parsing and validation of TLV payloads 2024-04-25 09:15:58 -04:00
iterator.go record+htlcswitch: convert BlindedRouteData fields to optional 2024-07-10 09:12:39 +02:00
iterator_test.go record+htlcswitch: convert BlindedRouteData fields to optional 2024-07-10 09:12:39 +02:00
log.go htlcswitch: move hop iterator into htlcswitch/hop package 2019-09-05 15:30:31 +02:00
payload.go htlcswitch: split parsing and validation of TLV payloads 2024-04-25 09:15:58 -04:00
payload_test.go record+htlcswitch: convert BlindedRouteData fields to optional 2024-07-10 09:12:39 +02:00
type.go htlcswitch/hop: move hop.Exit and hop.Source to hop pkg 2019-09-05 01:35:23 -07:00