Browse Source

cmd/loop: add initiator to swap requests

pull/316/head
Oliver Gugger 2 months ago
parent
commit
fcdd5fe9f8
No known key found for this signature in database GPG Key ID: 8E4256593F177720
3 changed files with 6 additions and 0 deletions
  1. +1
    -0
      cmd/loop/loopin.go
  2. +1
    -0
      cmd/loop/loopout.go
  3. +4
    -0
      cmd/loop/main.go

+ 1
- 0
cmd/loop/loopin.go View File

@ -150,6 +150,7 @@ func loopIn(ctx *cli.Context) error {
ExternalHtlc: external,
HtlcConfTarget: htlcConfTarget,
Label: label,
Initiator: defaultInitiator,
}
if ctx.IsSet(lastHopFlag.Name) {

+ 1
- 0
cmd/loop/loopout.go View File

@ -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

+ 4
- 0
cmd/loop/main.go View File

@ -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…
Cancel
Save