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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use block count instead of oldest block for timespan selection #1548

Merged
merged 3 commits into from Apr 24, 2022

Conversation

nymkappa
Copy link
Member

@nymkappa nymkappa commented Apr 15, 2022

Today if you don't index all blocks, but browse the oldest blocks in the /mining/blocks page, then all mining charts will be pretty much broken. The reason is that we used the oldest indexed block timestamp as a proxy to know how much data we have.
I've replaced this by the total number of indexed block instead, which is more much more accurate.

Now you'll be able to index only 10k blocks, and browser Satoshi's blocks, without breaking your mining charts 馃槂

@cla-bot cla-bot bot added the cla-signed label Apr 15, 2022
@nymkappa nymkappa requested review from softsimon and wiz April 18, 2022 03:02
@nymkappa nymkappa marked this pull request as ready for review April 18, 2022 03:02
Copy link
Member

@wiz wiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partially Tested ACK @ v2.4.0-dev [0803fed0]

@wiz wiz merged commit 7133451 into master Apr 24, 2022
@wiz wiz deleted the nymkappa/feature/timespan-selector-update branch April 24, 2022 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants