mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 23:30:59 +01:00
This is required by BOLT 2 to ensure that no attacker can simply relay every public node a duplicate-payment_hash HTLC for each HTLC it receives to deduce where an HTLC came from. Note that this makes the claim logic much less incentive-compatible as we will not claim all available HTLCs with the same payment_hash even if we know the preimage! This is OK because, most likely, any attackers trying to map the network will use small-value payments and, hopefully, we will move away from constant hashes across an entire payment at some point in the near future. This further simplifies the payment transition state a bit, so hopefully at least we got some readability out of all of this |
||
---|---|---|
.. | ||
msg_targets | ||
utils | ||
chanmon_deser_target.rs | ||
channel_target.rs | ||
full_stack_target.rs | ||
msg_ping_target.rs | ||
msg_pong_target.rs | ||
peer_crypt_target.rs | ||
router_target.rs |