lnd.xprv/htlcswitch
Olaoluwa Osuntokun e2fe4c2955
htlcswitch: reject duplicate payments to same invoice
In this commit, we modify the way the link handles HTLC’s that it
detects is destined for itself. Before this commit if a payment hash
came across for an invoice we’d already settled, then we’d gladly
accept the payment _again_. As we’d like to enforce the norm that an
invoice is NEVER to be used twice, this commit modifies that behavior
to instead reject an incoming payment that attempts to re-use an
invoice.

Fixes #560.
2018-01-04 14:23:37 -06:00
..
circuit_test.go htlcswitch: Rename htlcPacket fields for clarity. 2017-12-14 17:53:58 -08:00
circuit.go htlcswitch: Change circuit map keys to (channel ID, HTLC ID). 2017-12-14 17:53:58 -08:00
failure.go htlcswitch: add new ExtraMsg field to ForwardingError 2017-10-16 18:15:51 -07:00
interfaces.go htlcswitch: add new method to the ChannelLink interface, EligibleToForward 2017-12-06 16:42:57 -08:00
iterator.go htlcswitch: add additional error logging during onion process failures 2017-12-10 15:52:37 -08:00
link_test.go htlcswitch: reject duplicate payments to same invoice 2018-01-04 14:23:37 -06:00
link.go htlcswitch: reject duplicate payments to same invoice 2018-01-04 14:23:37 -06:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
mailbox_test.go multi: fix several typos in godoc comments 2017-12-17 18:40:05 -08:00
mailbox.go htlcswitch: add new mailBox abstraction to the package 2017-11-10 19:51:01 -08:00
mock.go htlcswitch: mockChannelLink adds to circuit map to simplify tests. 2017-12-14 17:53:58 -08:00
packet.go htlcswitch: Fix failure error handling on outgoing adds. 2017-12-14 17:53:58 -08:00
queue_test.go htlcswitch: Remove obsolete fields from htlcPacket. 2017-12-14 17:53:58 -08:00
queue.go htlcswitch: fix alignment of the packetQueue's fields for 32-bit systems (#507) 2017-12-22 16:32:11 +01:00
switch_test.go htlcswitch: Fix failure error handling on outgoing adds. 2017-12-14 17:53:58 -08:00
switch.go htlcswitch: Fix failure error handling on outgoing adds. 2017-12-14 17:53:58 -08:00
test_utils.go lnwallet: don't use persistent pointer to funding tx within channel state machine 2017-12-22 19:26:35 +01:00