rust-lightning/lightning/src/ln
Alec Chen 8ff1604647
Add FailureCode::InvalidOnionPayload variant
When a user decodes custom TLVs, if they fail to recognize even type
numbers they should fail back with the correct failure code and fail
data. This new variant adds the proper failure variant for the user to
pass into `ChannelManager::fail_htlc_backwards_with_reason`.

Note that the enum discriminants were removed because when adding a
struct variant we can no longer make use of the discriminant through
casting like we previously did, and instead have to manually define the
associated failure code anyway.
2023-08-08 16:16:44 -05:00
..
chan_utils.rs Migrate chan_utils vec_type TLVs to required/optional 2023-07-07 21:07:06 +00:00
chanmon_update_fail_tests.rs Struct-ify reconnect_nodes test util args 2023-07-27 16:00:28 -07:00
channel.rs Merge pull request #2128 from valentinewallace/2023-03-route-blinding-groundwork 2023-08-08 19:59:05 +00:00
channelmanager.rs Add FailureCode::InvalidOnionPayload variant 2023-08-08 16:16:44 -05:00
features.rs Make requires_unknown_bits_from param type bindings compatible 2023-07-20 21:43:52 +00:00
functional_test_utils.rs Struct-ify reconnect_nodes test util args 2023-07-27 16:00:28 -07:00
functional_tests.rs Merge pull request #2128 from valentinewallace/2023-03-route-blinding-groundwork 2023-08-08 19:59:05 +00:00
inbound_payment.rs Move keysinterface.rs to a directory-level module called sign. 2023-05-02 21:48:08 -07:00
mod.rs Impl PartialOrd and Ord for Invoice 2023-05-09 12:39:17 -05:00
monitor_tests.rs Drop claimable from Balance::claimable_amount_satoshis fields 2023-07-30 02:24:16 +00:00
msgs.rs De/serialize custom TLVs on {Inbound,Outbound}OnionPayload 2023-08-08 16:13:19 -05:00
onion_route_tests.rs Add FailureCode::InvalidOnionPayload variant 2023-08-08 16:16:44 -05:00
onion_utils.rs De/serialize custom TLVs on {Inbound,Outbound}OnionPayload 2023-08-08 16:13:19 -05:00
outbound_payment.rs Drop non-matching custom TLVs when receiving MPP 2023-08-08 16:16:43 -05:00
payment_tests.rs Drop non-matching custom TLVs when receiving MPP 2023-08-08 16:16:43 -05:00
peer_channel_encryptor.rs Move keysinterface.rs to a directory-level module called sign. 2023-05-02 21:48:08 -07:00
peer_handler.rs No-export APeerManager in bindings 2023-07-20 21:43:52 +00:00
priv_short_conf_tests.rs Merge pull request #2439 from tnull/2023-05-fix-0conf-sigs-racing-confirms 2023-07-21 19:37:28 +00:00
reload_tests.rs Struct-ify reconnect_nodes test util args 2023-07-27 16:00:28 -07:00
reorg_tests.rs Add networks TLV to Init's TLV stream 2023-06-05 09:45:41 +02:00
script.rs Use UserConfig to determine advertised InitFeatures by ChannelManager 2023-01-13 23:54:51 -08:00
shutdown_tests.rs Add ChannelShutdownState to ChannelDetails 2023-07-06 10:51:35 +08:00
wire.rs Implement enqueue_message trait requirements on Message enum 2023-05-26 14:40:14 -07:00