Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Ideally, stale-block hashes should be provided along with the corresponding
block-header. A hash without a block header could easily be fake.

Stale block data can be queried via the `getchaintips` RPC of Bitcoin Core.
The [`get-data.sh`](./get-data.sh) script can be used to directly query the
The [`get-data.py`](./get-data.py) script can be used to directly query the
stale-blocks and their headers. It produces CSV output in the same format as
the [`stale-blocks.csv`](./stale-blocks.csv) file. Tips that are `active` or
`invalid` are already filtered.

To automatically add your data to [`stale-blocks.csv`](./stale-blocks.csv) you
can use the following:

```
python3 ./get-data.py
```bash
python3 get-data.py
git diff stale-blocks.csv
```

Expand Down