mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
pay: Retry the route computation if we could not apply the chanhints
This adds a new state `PAYMENT_STEP_RETRY_GETROUTE` which is used to retry just that one step, without spawning a completely new attempt. It's a new state so that modifiers do not act on it twice. Changelog-Fixed: pay: Improved the performance of the `pay` command considerably by avoiding conflicting changes to our local network view.
This commit is contained in:
committed by
Rusty Russell
parent
544e110c96
commit
4d6b4a0445
@@ -94,6 +94,11 @@ enum payment_step {
|
||||
* to amend the route. */
|
||||
PAYMENT_STEP_GOT_ROUTE = 2,
|
||||
|
||||
/* Something went wrong with the route returned by the
|
||||
previous step, so retry, but do not rerun the INITIALIZED
|
||||
modifiers. */
|
||||
PAYMENT_STEP_RETRY_GETROUTE = 3,
|
||||
|
||||
/* We just computed the onion payload, allow modifiers to amend,
|
||||
* before constructing the onion packet. */
|
||||
PAYMENT_STEP_ONION_PAYLOAD = 4,
|
||||
|
||||
Reference in New Issue
Block a user