rust-lightning/src
Matt Corallo da5d707f49 Allow duplicate-payment_hash HTLCs for HTLC forwards
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
2018-09-12 11:15:47 -04:00
..
chain Refactor/dont re-enter block_conencted on duplicate watch calls 2018-09-08 02:30:28 +00:00
ln Allow duplicate-payment_hash HTLCs for HTLC forwards 2018-09-12 11:15:47 -04:00
util Also fwd channel_update and node_announcement immediately 2018-08-29 18:07:56 -04:00
lib.rs Logging interface 2018-08-17 00:01:15 +00:00