Commit Graph

28 Commits (master)

Author SHA1 Message Date
Slyghtning e490d97f3f
loop: fix loop out help text 8 months ago
sputn1ck 4baf88c414
multi: fix linter issues
This commit fixes outstanding linter issues, that we're not found by
running `make lint` locally. The linter issues were found by running
`docker run -v $(pwd):/build loop-tools golangci-lint run --whole-files`

I added the `revive` to the excludes as it would be to much of a
refactor and IMO seems unneccesary. E.g.
`interface.go:222:6: exported: type name will be used as
loop.LoopInTerms by other packages, and that stutters; consider
 calling this InTerms (revive)`. I think `loop.LoopInTerms` is fine.
1 year ago
Andras Banki-Horvath 88956455b4
multi: completely remove support for NP2WSH htlcs
This commit removes all code related to NP2WSH htlcs. These were
historically used when segwit adoption was very sporadic and are not
used anywhere anymore. Some historical swaps stored in the DB may be
listed with incorrect htlc adresses from here on.
2 years ago
Andras Banki-Horvath 901a935514
loopin: enable p2tr htlcs without keyspend 2 years ago
Harsha Goli b7ba19394b
Merge pull request #415 from lightninglabs/routehints
loopin: Add --private parameter
2 years ago
Harsha Goli f1a7d8fb49
multi: pass private, routehints from loopcli - loopd - loop server
This commit passes routehints all the way from when/if the user passes
them from the cli all the way to the backend loop server. If private is
used, this commit passes that boolean down to different stages, where it
is then converted into routehints.

main: add --private and --route_hints to quote

Adds --private and --route_hints flags to quote cli
2 years ago
Harsha Goli 4299147895
main: add --private flag to loop in
Adding the --private flag informs loopd that the connected node is
considered private (all channels are marked private) and the loop in
server may have trouble routing the payment. To handle this, loopd will
construct some hophints that will be sent to the loopin server to help
route. This commit merely adds the flag to the cli.
2 years ago
Harsha Goli 5504368844
loopin: Add --route_hints parameter
Adds the --route_hints parameter to loop quote
2 years ago
Harsha Goli e52f6eff47
main: add --force to loop in/loop out
--force skips the confirmation prompt when performing loops. This is
super userful for scripts and negates the use of gnu yes
2 years ago
Andras Banki-Horvath 9af6576dae
cli: add optional last hop to the loop in quote 3 years ago
yyforyongyu 82401ff1ba
cmd: prettify loop quote in/out responses 3 years ago
Oliver Gugger fcdd5fe9f8
cmd/loop: add initiator to swap requests 4 years ago
carla f62d09528d
loop: allow creation of loops with labels on cli 4 years ago
Joost Jager 8d1ec50fa7
looprpc: split quote message 4 years ago
Joost Jager 1869ad670f
looprpc: expose server message to clients 4 years ago
Andras Banki-Horvath 5215222ced cmd: print both htlc addresses when monitoring a loop-in 4 years ago
Oliver Gugger 3b630667a5
cmd/loop: improve displayed limits 4 years ago
carla fc99c8b320
multi: add confirmation target to loop in 4 years ago
Oliver Gugger acdd2a22b2
cmd/loop: warn user if fee estimation fails 4 years ago
Joost Jager b69e8cb275
multi: allow loop in last hop restriction 4 years ago
Johan T. Halseth 7ea0e35299
cmd/loop: delay swap by 30 minutes by default, add --fast to loopout command
We now delay the swap by up to 30 minutes by deafult. To keep the
current imemdiate swap, --fast flag is added.
5 years ago
Oliver Gugger 69f2af9fdc
loop+cmd: extract types into swap module 5 years ago
Oliver Gugger 36838cf7f4
multi: fix most obvious linter errors 5 years ago
Oliver Gugger c00f831675
cmd/loop: handle external loop in flag 5 years ago
Joost Jager f7676c3489
loop: show correct swap type 5 years ago
Joost Jager f7f9751a1a
loop: hide loop in channel selection flag 5 years ago
Joost Jager 2e48ead6d6
loopd: loop in from external address
Allow user to specify that htlc will be published by an external source.
In that case no internal htlc tx will be published.

To facilitate sending to the htlc address, the swap initiation response
is extended with that address.
5 years ago
Joost Jager 3e960b8b54
multi: loop in swap 5 years ago