Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: fwdinghistory only accepts --start_time as last argument #6674

Closed
C-Otto opened this issue Jun 27, 2022 · 4 comments · Fixed by #6682
Closed

Regression: fwdinghistory only accepts --start_time as last argument #6674

C-Otto opened this issue Jun 27, 2022 · 4 comments · Fixed by #6682
Labels
beginner Issues suitable for new developers bug Unintended code behaviour cli Related to the command line interface

Comments

@C-Otto
Copy link
Contributor

C-Otto commented Jun 27, 2022

Background

Previously, this worked:
lncli fwdinghistory --start_time -10y --index_offset 0 --max_events 1

With lnd 0.15.0-beta-rc6 I get [lncli] unable to decode start_time: strconv.ParseUint: parsing "--index_offset": invalid syntax

The command works as expected if I move --start_time to the end:

lncli fwdinghistory --index_offset 0 --max_events 1 --start_time -10y

Your environment

  • version of lnd: lnd 0.15.0-beta-rc6
  • which operating system (uname -a on *Nix): Linux server 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux
  • version of btcd, bitcoind, or other backend: bitcoind v23

Steps to reproduce

lncli fwdinghistory --start_time -10y --index_offset 0 --max_events 1

Expected behaviour

JSON output

Actual behaviour

[lncli] unable to decode start_time: strconv.ParseUint: parsing "--index_offset": invalid syntax

@ErikEk
Copy link
Contributor

ErikEk commented Jun 27, 2022

lncli fwdinghistory --start_time=-10y --index_offset=0 --max_events=1 works but I'll take a closer look at what is going on here.

@guggero
Copy link
Collaborator

guggero commented Jun 27, 2022

Was caused by the upgrade of github.com/urfave/cli from v1.20.0 to v1.22.4 and seems to be fixed in v1.22.9 (urfave/cli#1356)

@ErikEk
Copy link
Contributor

ErikEk commented Jun 27, 2022

v1.22.9 works for me too.

@ErikEk
Copy link
Contributor

ErikEk commented Jun 27, 2022

@guggero I can create a PR and run the tests if you want?

@Roasbeef Roasbeef added bug Unintended code behaviour beginner Issues suitable for new developers cli Related to the command line interface labels Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner Issues suitable for new developers bug Unintended code behaviour cli Related to the command line interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants