looprpc: add payment_timeout to the LoopOutRequest

This commit is contained in:
Andras Banki-Horvath 2024-05-09 15:31:24 +02:00
parent f26a00dd98
commit 461ceeeb28
No known key found for this signature in database
GPG key ID: 80E5375C094198D8
3 changed files with 611 additions and 586 deletions

File diff suppressed because it is too large Load diff

View file

@ -278,6 +278,13 @@ message LoopOutRequest {
be equal to the sum of the amounts of the reservations.
*/
repeated bytes reservation_ids = 18;
/*
The timeout in seconds to use for off-chain payments. Note that the swap
payment is attempted multiple times where each attempt will set this value
as the timeout for the payment.
*/
uint32 payment_timeout = 19;
}
/*

View file

@ -1268,6 +1268,11 @@
"format": "byte"
},
"description": "The reservations to use for the swap. If this field is set, loop will try\nto use the instant out flow using the given reservations. If the\nreservations are not sufficient, the swap will fail. The swap amount must\nbe equal to the sum of the amounts of the reservations."
},
"payment_timeout": {
"type": "integer",
"format": "int64",
"description": "The timeout in seconds to use for off-chain payments. Note that the swap\npayment is attempted multiple times where each attempt will set this value\nas the timeout for the payment."
}
}
},