From dee18ed80ce9afd285bd97158a3fbabbabd085ad Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 7 Nov 2023 20:29:27 -0600 Subject: [PATCH] sweeptimelockmanual: rename variable --- cmd/chantools/sweeptimelockmanual.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/chantools/sweeptimelockmanual.go b/cmd/chantools/sweeptimelockmanual.go index 72d1564..5782fd7 100644 --- a/cmd/chantools/sweeptimelockmanual.go +++ b/cmd/chantools/sweeptimelockmanual.go @@ -34,8 +34,8 @@ type sweepTimeLockManualCommand struct { TimeLockAddr string RemoteRevocationBasePoint string - MaxNumChansTotal uint16 - MaxNumChanUpdates uint64 + MaxNumChannelsTotal uint16 + MaxNumChanUpdates uint64 rootKey *rootKey inputs *inputFlags @@ -83,7 +83,7 @@ address is always the one that's longer (because it's P2WSH and not P2PKH).`, "limit to use", ) cc.cmd.Flags().Uint16Var( - &cc.MaxNumChansTotal, "maxnumchanstotal", maxKeys, "maximum "+ + &cc.MaxNumChannelsTotal, "maxnumchanstotal", maxKeys, "maximum "+ "number of keys to try, set to maximum number of "+ "channels the local node potentially has or had", ) @@ -136,7 +136,7 @@ func (c *sweepTimeLockManualCommand) Execute(_ *cobra.Command, _ []string) error return sweepTimeLockManual( extendedKey, c.APIURL, c.SweepAddr, c.TimeLockAddr, - remoteRevPoint, 0, c.MaxCsvLimit, 0, c.MaxNumChansTotal, + remoteRevPoint, 0, c.MaxCsvLimit, 0, c.MaxNumChannelsTotal, c.MaxNumChanUpdates, c.Publish, c.FeeRate, ) }