Commit Graph

21 Commits (4c58d0c5e8eac5506e083caa1d84ad79d9b407bf)

Author SHA1 Message Date
carla d1c26a20da
multi: surface server swap initiation grpc error codes
Formatting our error was stifling any grpc error returned by the
server. Instead, we bubble up our grpc error, setting an unknown
code if the server did not specifically return an error code.
3 years ago
carla cae72b5848
loopin/test: move invoice updates to loopin test context 3 years ago
carla 4911130671
loopin: store loop in on-chain fees 3 years ago
Oliver Gugger 2a732a4385
loop: add initiator string to user agent 4 years ago
Andras Banki-Horvath 98bdbcddfb tests: extend tests to also test resuming with HTLC v2 4 years ago
Andras Banki-Horvath 9fdd531130
swap: add HTLC script version 4 years ago
Joost Jager 8b215edaa2
multi: create init result structs 4 years ago
Joost Jager f91422d188
loopin: record htlx tx hash 4 years ago
Joost Jager a3b7fa5977
loopin: fail swap when htlc amount is incorrect
Previously the swap would get stuck in a state where it wouldn't ever
progress because the server rejected the htlc.
4 years ago
Joost Jager 0c9fcd790e
lndclient: move to github.com/lightninglabs/lndclient 4 years ago
carla 2ebbc78131
swap: add constructor for swap config 4 years ago
Andras Banki-Horvath 0aa978bd09 loopin: modify internally published htlc to use p2wsh 4 years ago
Andras Banki-Horvath f0aff9b7bd looprpc+loopin: support for native segwit htlcs
This commit extends SwapResponse and SwapStatus with np2wsh and p2wsh
htlc output addresses to support both nested and native segwit htlcs
in loop-in.

Furthermore the commit adds support for native segwith loop-in htlcs.
When the htlc is paid internally, as of this commit we'll use NP2WSH,
otherwise users are free to select whether to pay the NP2WSH or the
P2WSH htlc.
4 years ago
Joost Jager 9aaef3fd07
loopin: use discovered htlc value for timeout tx 4 years ago
Joost Jager edac1a4054
loopin/test: extend test with external htlcs 4 years ago
Joost Jager a05e46697d
test: assert raw output signing requests 4 years ago
Oliver Gugger b574e344ea
multi: add persistent logger 5 years ago
Joost Jager 1b306ad425
loopdb: replace swap state enum by state data object
This commits lays down the foundation in the database for adding more
persistent state data to swaps.
5 years ago
Joost Jager 30c7d71c57
use np2wsh for loop in htlc 5 years ago
Joost Jager b5d2fb3894
loopd: add loop in state InvoiceSettled 5 years ago
Joost Jager 3e960b8b54
multi: loop in swap 5 years ago