mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-03 01:21:40 +01:00
In this commit, we add a new field to the LightningPayment struct: PayAttemptTimeout. This new field allows the caller to control exactly how much time should be spent attempting to route a payment to the destination. The default value we’ll use is 60 seconds, but callers are able to specify a diff value. Once the timeout has passed, we’ll abandon th e payment attempt, and return an error back to the original caller.
2.8 KiB
2.8 KiB