Skip to content

Commit dee18ed

Browse files
committed
sweeptimelockmanual: rename variable
1 parent 5bc4937 commit dee18ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/chantools/sweeptimelockmanual.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ type sweepTimeLockManualCommand struct {
3434
TimeLockAddr string
3535
RemoteRevocationBasePoint string
3636

37-
MaxNumChansTotal uint16
38-
MaxNumChanUpdates uint64
37+
MaxNumChannelsTotal uint16
38+
MaxNumChanUpdates uint64
3939

4040
rootKey *rootKey
4141
inputs *inputFlags
@@ -83,7 +83,7 @@ address is always the one that's longer (because it's P2WSH and not P2PKH).`,
8383
"limit to use",
8484
)
8585
cc.cmd.Flags().Uint16Var(
86-
&cc.MaxNumChansTotal, "maxnumchanstotal", maxKeys, "maximum "+
86+
&cc.MaxNumChannelsTotal, "maxnumchanstotal", maxKeys, "maximum "+
8787
"number of keys to try, set to maximum number of "+
8888
"channels the local node potentially has or had",
8989
)
@@ -136,7 +136,7 @@ func (c *sweepTimeLockManualCommand) Execute(_ *cobra.Command, _ []string) error
136136

137137
return sweepTimeLockManual(
138138
extendedKey, c.APIURL, c.SweepAddr, c.TimeLockAddr,
139-
remoteRevPoint, 0, c.MaxCsvLimit, 0, c.MaxNumChansTotal,
139+
remoteRevPoint, 0, c.MaxCsvLimit, 0, c.MaxNumChannelsTotal,
140140
c.MaxNumChanUpdates, c.Publish, c.FeeRate,
141141
)
142142
}

0 commit comments

Comments
 (0)