Files
lnd.xprv/htlcswitch
Conner Fromknecht 3c91c3a8ff htlcswitch/hop/payload: required failures with ErrInvalidPayload
This commit adds a hop.PayloadViolation enum which encompasses the cases
where the sender omits, includes, or requires a type that causes an
ErrInvalidPayload faiulre.

The existing Omitted bool is converted to this PayloadViolation, and
NewPayloadFromReader is updated to return such a failure with a
RequiredViolation when an unknown required type is detected.

The unit tests are updated to cover the three possible cases of
RequiredViolations, as well as included valid intermediate and final hop
tests.
2019-10-30 21:19:08 -07:00
..
2019-09-10 17:21:59 +02:00
2019-09-13 09:50:38 +02:00
2019-09-09 13:52:35 +02:00
2019-09-10 17:21:59 +02:00
2019-09-10 17:21:59 +02:00
2019-10-03 17:27:36 +02:00