-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix: listpayments --count_total_payments should honor --creation_date_start and --creation_date_end #8565
Closed
Closed
fix: listpayments --count_total_payments should honor --creation_date_start and --creation_date_end #8565
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
0b33b39
channeldb: add creation ts start end check in query all
violetguos a2b4967
docs: Reformat w linter, add RELEASE note
violetguos 21832d4
channeldb: Add CountTotal to all test cases
violetguos 2c8d039
multi: Fix the linter whitespace for multi line
violetguos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,11 @@ | |
- [Contributors (Alphabetical Order)](#contributors-alphabetical-order) | ||
|
||
# Bug Fixes | ||
* [Fix a bug](https://github.com/lightningnetwork/lnd/pull/8565) where | ||
`listpayments --count_total_payments` flag disregarded `--creation_date_start` | ||
and `--creation_date_end`. The payments between the dates would be queried | ||
instead of the total payments if the dates were supplied. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, this is not correct. |
||
|
||
* [Fix a bug](https://github.com/lightningnetwork/lnd/pull/8097) where | ||
`sendcoins` command with `--sweepall` flag would not show the correct amount. | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think this is the behaviour we want. I think that we still want to count how many payments there were but we just want to count the ones that happened between the given start and end times.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the feedback @ellemouton
the original bug report by @AndySchroder specifies that
it seems like the original issue had a different interpretation on the expected behaviour
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont agree. In that example he is specifying a difference in start and end time of 1 second (millisecond?). So it is expected that there are no payments during that time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that time difference was specified to assume there were no payments between that short period of time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this was the original purpose of the bug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, please understand the interpretation that @ellemouton is providing. she understands bug report correctly.