mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
plugins/pay: Exclude the entrypoint to a routehint to avoid cycles
This uses @cdecker's idea of excluding the routehinted channel from the route, and also consumes the route hints as it goes so that it makes progress. I don't know if this is correct, but it reliably passes tests/test_pay.py::test_tlv_or_legacy now.
This commit is contained in:
committed by
Christian Decker
parent
56dd18e01e
commit
2556df5f7c
@@ -232,6 +232,9 @@ struct payment {
|
||||
struct channel_hint *channel_hints;
|
||||
struct node_id *excluded_nodes;
|
||||
|
||||
/* Optional temporarily excluded channel (i.e. this routehint) */
|
||||
struct short_channel_id *temp_exclusion;
|
||||
|
||||
struct payment_result *result;
|
||||
|
||||
/* Did something happen that will cause all future attempts to fail?
|
||||
|
||||
Reference in New Issue
Block a user