Avoid claiming remote received HTLCs with preimage
authorAntoine Riard <ariard@student.42.fr>
Wed, 13 Nov 2019 00:27:55 +0000 (19:27 -0500)
committerAntoine Riard <ariard@student.42.fr>
Wed, 13 Nov 2019 00:27:55 +0000 (19:27 -0500)
In case of duplicate HTLCs with same hash going in opposite
directions we may learn preimage of offered one, but we shouldn't
claim received one to avoid invalidation of combined claim.
The received HTLC is going to be claimed by a timeout tx at
timelock expiration.

Fix #337


No differences found