mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
cmd/loop: add initiator to swap requests
This commit is contained in:
parent
481839b0fb
commit
fcdd5fe9f8
3 changed files with 6 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ func loopIn(ctx *cli.Context) error {
|
|||
ExternalHtlc: external,
|
||||
HtlcConfTarget: htlcConfTarget,
|
||||
Label: label,
|
||||
Initiator: defaultInitiator,
|
||||
}
|
||||
|
||||
if ctx.IsSet(lastHopFlag.Name) {
|
||||
|
|
|
|||
|
|
@ -195,6 +195,7 @@ func loopOut(ctx *cli.Context) error {
|
|||
HtlcConfirmations: htlcConfs,
|
||||
SwapPublicationDeadline: uint64(swapDeadline.Unix()),
|
||||
Label: label,
|
||||
Initiator: defaultInitiator,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
|
|
@ -48,6 +48,10 @@ var (
|
|||
// that we set when sending it over the line.
|
||||
defaultMacaroonTimeout int64 = 60
|
||||
|
||||
// defaultInitiator is the default value for the "initiator" part of the
|
||||
// user agent string we send when using the command line utility.
|
||||
defaultInitiator = "loop-cli"
|
||||
|
||||
loopDirFlag = cli.StringFlag{
|
||||
Name: "loopdir",
|
||||
Value: loopd.LoopDirBase,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue