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

[Content Bug] Blockchain dataset doesn't seem to be updating, so all the NOW() calls no longer work as expected #3667

Open
combscCode opened this issue Dec 18, 2024 · 0 comments · May be fixed by #3668
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@combscCode
Copy link

combscCode commented Dec 18, 2024

Describe the bug

The bitcoin dataset provided in the cryptocurrency tutorials claim the dataset is updated daily, see here. However, when I downloaded the dataset it seems to have last been updated on 2023-11-21. I've downloaded the dataset on a couple of machines to verify that it's not some issue related to a single machine (but all of the machines I've downloaded on are on the same network). Link to the dataset is here, would be nice for a reviewer to sanity check that the dataset is truly out of date.

The second part of the tutorial uses quite a few NOW() calls, so all of these are broken if the dataset isn't kept up to date.

What do the docs say now?

SELECT
 bucket AS "time",
 tx_count as "tx volume",
 average(stats_fee_sat) as fees
FROM one_hour_transactions
WHERE bucket > NOW() - INTERVAL '2 days'
ORDER BY 1;

What should the docs say?

SELECT
 bucket AS "time",
 tx_count as "tx volume",
 average(stats_fee_sat) as fees
FROM one_hour_transactions
WHERE bucket > date_add('2023-11-22 00:00:00+00', INTERVAL '-2 days')
ORDER BY 1;

(or something along those lines, I'm not experienced with SQL :) ).

Alternatively, y'all could just fix the dataset to be kept up to date. But I figure that it'd be less work to just keep the dataset in november of 2023.

Page affected

The dataset is updated daily and contains data from the last five days,

Subject matter expert (SME)

[If known, who is a good person to ask about this topic]

Screenshots

[Attach images of screenshots showing the bug]

Any further info

[Anything else you want to add, or further links]

Contributing to documentation

We welcome documentation contributions!

  • For information about how to propose a change, see the contributing guide in our GitHub repository.
  • For information on style and word usage, see the style guide
@combscCode combscCode added bug Something isn't working documentation Improvements or additions to documentation labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
1 participant