Skip to content

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

Closed
@combscCode

Description

@combscCode

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions