lnd/htlcswitch/hop
Eugene 9478b85e59
htlcswitch/hop: use InvalidOnionVersion for replayed packets (#7937)
* htlcswitch/hop: use InvalidOnionVersion for replayed packets

The link will send an update_fail_malformed_htlc, so we need to set
the BADONION bit. Since there isn't a replay-specific error, we
set the failure code to InvalidOnionVersion which has the BADONION bit.

* release-notes: update for 0.17.1
2023-10-11 10:08:43 +02:00
..
error_encryptor.go multi: fix make fmt 2022-08-23 22:10:24 +08:00
forwarding_info.go htlcswitch: remove Network type 2023-10-06 16:34:47 -07:00
iterator.go htlcswitch/hop: use InvalidOnionVersion for replayed packets (#7937) 2023-10-11 10:08:43 +02:00
iterator_test.go multi: move many t.Fatalf calls to require.NoError 2022-06-17 04:26:55 +00:00
log.go htlcswitch: move hop iterator into htlcswitch/hop package 2019-09-05 15:30:31 +02:00
payload.go multi: add blinded path TLVs to onion payload / hops 2023-10-06 16:38:33 -07:00
payload_test.go multi: add blinded path TLVs to onion payload / hops 2023-10-06 16:38:33 -07:00
type.go htlcswitch/hop: move hop.Exit and hop.Source to hop pkg 2019-09-05 01:35:23 -07:00