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

[bug]: lncli listpayments --count_total_payments should honor --creation_date_start --creation_date_end #8530

Open
AndySchroder opened this issue Mar 7, 2024 · 4 comments · May be fixed by #8883
Labels
beginner Issues suitable for new developers bug Unintended code behaviour good first issue Issues suitable for first time contributors to LND lncli P2 should be fixed if one has time rpc Related to the RPC interface

Comments

@AndySchroder
Copy link

AndySchroder commented Mar 7, 2024

Background

lncli listpayments --count_total_payments should honor --creation_date_start and --creation_date_end

Steps to reproduce

$ lncli listpayments --count_total_payments|grep total_num_payments
    "total_num_payments": "30560"
$

and

$ lncli listpayments --creation_date_start 1650000000 --count_total_payments --creation_date_end 1650000001|grep total_num_payments
    "total_num_payments": "30560"
$

both yield the same thing.

I would expect

$ lncli listpayments --creation_date_start 1650000000 --count_total_payments --creation_date_end 1650000001|grep total_num_payments
    "total_num_payments": "0"
$
@AndySchroder AndySchroder added bug Unintended code behaviour needs triage labels Mar 7, 2024
@saubyk saubyk added rpc Related to the RPC interface lncli P2 should be fixed if one has time beginner Issues suitable for new developers and removed needs triage labels Mar 7, 2024
@yyforyongyu yyforyongyu added the good first issue Issues suitable for first time contributors to LND label Mar 9, 2024
@natalypeyioti
Copy link

I would like to work on this issue! Can I take it?

@violetguos
Copy link

Hi @AndySchroder , since the issue doesn't have an assignee, I took a stab at it. Could you please have a look? I already answered the bot reviewer's questions

@AndySchroder
Copy link
Author

Okay, looks like #8565 has been cancelled and this issue will need a new attempt.

@MPins
Copy link
Contributor

MPins commented Jun 22, 2024

Okay, looks like #8565 has been cancelled and this issue will need a new attempt.

I've been investigating this issue and the code associated with it ... The function QueryPayments is not considering the data filtering when counting the numbers of payments.

I would like to do a new attempt to solve it.

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 good first issue Issues suitable for first time contributors to LND lncli P2 should be fixed if one has time rpc Related to the RPC interface
Projects
None yet
6 participants