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.
This commit is contained in:
Joost Jager 2019-03-28 13:29:21 +01:00
parent 8b2da64b0a
commit 2e48ead6d6
No known key found for this signature in database
GPG key ID: A61B9D4C393C59C7
12 changed files with 190 additions and 98 deletions

View file

@ -186,6 +186,10 @@ type LoopInRequest struct {
// LoopInChannel optionally specifies the short channel id of the
// channel to charge.
LoopInChannel *uint64
// ExternalHtlc specifies whether the htlc is published by an external
// source.
ExternalHtlc bool
}
// LoopInTerms are the server terms on which it executes charge swaps.