-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update qt.cpp to match block_count RPC & fix bug with pruned display #4000
Conversation
Currently the QT wallet 1) does not show cemented count, 2) has "Full" directly appended to the unchecked count (no comma or space), and the "Pruned" count is always empty (due to a minor concatenation bug). This change fixes that
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.
Looks good. I'm thinking if maybe in addition we should always include cemented and unchecked count, it's an important indicator. Right now those sometimes skipped
Thanks for reviewing! If I understand correctly, you're asking me to remove the if statements for queued & cemented - do I need to do anything else for exception handling/error checking (e.g. if the values happened to be null for some reason)? I.e. going from this:
To this:
EDIT: I see that the cemented and unchecked variables are initialized and set to 0 by default, so I went ahead and removed the if-statements for now. Let me know if that works, or if I need to make additional changes |
Removing if-statements for cemented and unchecked, per #4000 (review)
Semi-related, would it make sense to rename "Queued" to "Unchecked" to match the RPC and colloquial usage? I don't see many node operators or developers referring to "Queued" these days, only "Unchecked" |
Yes, removing the if statements is exactly what I was thinking about. Also using "Unchecked" makes more sense to me, I have never seen anyone using "Queued". |
Renaming "Queued" to "Unchecked" per colloquial usage and comment here: #4000 (comment)
Perfect, thanks! The requested changes have been made |
Nice removal of complexity, checking for bootstrap in progress doesn't make much sense, we are always in bootstrapping mode, bootstrapping never stops and it is misleading to pretend otherwise. |
Look like unit test 'wallet.enter_password' broke by this change because it is looking for a specific status line. |
Search that the status line starts with the right words and ignore the counts, which are not directly relevant to this test.
Currently the QT wallet 1) does not show cemented count, 2) has "Full" directly appended to the unchecked count (no comma or space), and 3) the "Pruned" count is always empty (due to a minor concatenation bug). This change fixes that.
Here is a screenshot of the current situation, where "Cemented" is missing and the "Pruned" count does not display correctly: