[go: nahoru, domu]

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

[GUI] Staking Statistics doesn't populate month when day screen is empty #1202

Open
CaveSpectre11 opened this issue Dec 17, 2019 · 1 comment

Comments

@CaveSpectre11
Copy link

Describe the issue

With the new 4.0 wallet; the "Staking Statistics" on the front page displays the total stake earnings by day, month and year. Transitioning from the "day" view to the "month" view, when the "day" view is a period of time that does not have any stakes; the month view If you have selected the "day" view, and there are stakes on the chart, switching to "month" view will show your total stakes by month. However, if the "day" view is a time period that does not have any stakes, and select "month", the month chart is not displayed. Selecting year and then back to month will display the month chart; or navigating through the day chart to a day that has stakes, and switching back to the month chart.

Can you reliably reproduce the issue?

Yes

If so, please list the steps to reproduce below:

  1. Select "day" on the 4.0 wallet's staking statistics.
  2. navigate with the arrow keys on the left to a period of time where there is no stakes showing in the 12 day window (go forward in time if necessary to find a period)
  3. switch to "month" mode and see the chart is empty. (reproduced)
  4. switch to "year" mode and the chart will populate.
  5. switch to "month" mode and it will populate. (expected behavior)
  6. switch to "day" mode, navigate to an empty chart, switch back to "month" mode, you will see blank. (reproduced)
  7. switch back to "day" mode, and navigate to where a stake is shown on the chart, switch back to "month" mode and you will see it populate properly. (expected behavior)

Expected behavior

Month chart should populate with the monthly statistics when selected.

Actual behavior

In certain circumstances (as demonstrated in reproduction instructions), month is blank until day or year has a populated chart and month is selected again.

Screenshots.

provided if necessary

What version of PIVX Core are you using?

self compiled 4.0 off the 4.0 tag.

Machine specs:

  • OS: Linux Ubuntu 18.04

Any extra information that might be useful in the debugging process.

I did not check debug.log for any errors. Will update if there are any present.

@jakimanboy
Copy link
jakimanboy commented Mar 24, 2020

For me, this also happens for the Years. (using testnet self-compiled master build from today)

e.g.

  1. Click Years = Shows bars for 2018 & 2019 (expected)
  2. Click Months = Shows bars for months of 2019 (expected)
  3. Click Days = No bars for March 2019 (expected) (no stakes in March 2019)
  4. Click Months = Nothing for 2019 (UNEXPECTED)
  5. Now click Years = Shows bars for 2018 & 2019 (expected)
  6. Now click Days = No bars for March 2019 (expected)
  7. Now click Years = No bars. (UNEXPECTED)

So both 4 and 7 happens after clicking Days first (and if Days chart is empty of bars).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants