Commit graph

14 commits

Author SHA1 Message Date
Slyghtning
e772f8ccfa
instantout: enforce the accepted swap fee
Carry the accepted quote into each request, persist it, and reject
invoices above that limit. Preserve compatibility for requests that
omit the cap while distinguishing an explicit zero.
2026-08-11 21:27:35 +02:00
Slyghtning
b596eabab3
instantout: recheck reservation timing during recovery
Refresh the chain height when a swap resumes, verify both the
reservation and HTLC windows, and select the HTLC path when either
remaining window is too short.
2026-08-11 21:27:35 +02:00
Slyghtning
e98f733ef8
linter: fix lint issues after linter v2 update 2025-08-19 21:57:00 +02:00
sputn1ck
1ce9bdd0d3
multi: use reservation ids in instant out quote 2025-04-30 15:35:25 +02:00
Boris Nagaev
dc4a5641ac
multi: initialize block height in New, not in Run
If Run sets the current height field, it is technically a race between Run and
other methods reading the field. Setting in New is a safer option.

Removed a check that height is not 0 from static address manager.
2025-03-19 15:00:31 +01:00
sputn1ck
246becb10a
instantout: update package to use new fsm context
This commit updates the instantout package to use the new fsm context
instead of the old fsm context. This is only a first step in the process
of migrating the instantout package to the new fsm context. The next
step should be to remove the stored context in the instantout manager.
2024-10-22 11:46:31 +02:00
Boris Nagaev
8447f58ff9
multi: do not rename swapserverrpc to looprpc
Many imports renamed it, but it was not needed.
2024-09-10 09:54:17 -03:00
sputn1ck
b3805b7cad
instantout: add listinstantout func 2024-03-04 12:25:55 +01:00
sputn1ck
6a62be0d09
instantout: add addr to send funds to 2024-03-04 09:43:52 +01:00
Konstantin Nick
6a62cd02d7
Merge pull request #698 from sputn1ck/io_reservation_expiry 2024-02-12 12:33:05 +01:00
sputn1ck
a7ab998a3b
instantout: check reservation expiry 2024-02-12 12:28:56 +01:00
Andras Banki-Horvath
7fb75c2f83
instantout: fix swapserverrpc dependent compilation 2024-02-09 20:36:12 +01:00
sputn1ck
b3fe9a9c61
loopd: add instantout quote 2024-02-08 17:52:08 +01:00
sputn1ck
b7c1e68f46
instantout: add instantout manager 2024-02-06 15:07:58 +01:00