Files
lightning/lightningd
Christian Decker 7499f7ddd4 plugin: Add the htlc_accepted hook
This is a rather simple hook that allows a plugin to take control over
HTLCs that were accepted, but weren't resolved as part of an invoice
or forwarded to the next hop yet.

The goal is to allow plugins to terminate a route early, perform
intermediate checks before the payment is accepted (check inventory or
service delivery before accepting in order to avoid a refund for
example) or handle an onion differently if it has a different
realm (cross-chain atomic swaps).

This doesn't implement serializing the payload or deserializing it,
instead just passes the full context along. The details for
serializing and deserializing will be implemented in a future commit.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-06-04 00:27:15 +00:00
..
2017-10-20 18:31:32 +02:00
2019-01-29 04:50:01 +00:00
2019-05-31 18:36:38 +02:00
2019-05-31 18:36:38 +02:00
2019-04-08 04:41:43 +00:00
2019-05-31 18:36:38 +02:00