1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-24 14:50:46 +01:00
eclair/eclair-core
Pierre-Marie Padiou 449c307132
Support signing multiple similar/identical HTLCs (#553)
* support signing multiple identical htlcs

We previously resolved the commitment tx output based only on the
`pubkeyScript`, causing us to reuse the same output for multiple htlcs.

We now keep track of which commitment tx output has been used.

* resolve htlcs using the amount too

We may have htlcs with identical `payment_hash` + `cltv_expiry`, but
different amounts.

In that case we need to use the `amount` to differentiate and choose the
correct commitment output for each htlc.

In other cases, when there is no risk of confusion it is ok to only rely
on `pubkeyScript`.
2018-04-11 15:44:39 +02:00
..
src Support signing multiple similar/identical HTLCs (#553) 2018-04-11 15:44:39 +02:00
eclair-cli Make eclair-cli executable (#382) 2018-01-20 23:37:21 +01:00
pom.xml back to SNAPSHOT 2018-04-04 13:52:24 +02:00