<p>Edit: I just realized that you say “past a certain height”. If you meant, that you don’t have the blocks below that height, my answer below applies. Otherwise, you might not have downloaded the remaining blocks yet?</p>
<hr />
<p>It sounds like you are running your node in “pruning” mode. This is the default behavior when you are using <code>bitcoin-qt</code>, the GUI-mode. If you want to keep a complete copy of the blockchain you can either uncheck the option in the settings or add <code>prune=0</code> in the configuration (<code>bitcoin.conf</code>). Either way, you will need to indeed <code>reindex</code> after changing the setting to reacquire the missing blockdata.</p>

CC BY-SA 4.0
2023-05-05T22:21:36.893Z
2023-05-05T22:21:36.893Z
Murch
<p>I am revising my blockchain parser and I'm encountering an issue where I only have block headers but not the corresponding block data on my machine for blocks past a certain height (on my machine it started at block #594606 and from there on I only had data for some blocks.)  There is a bit flag 'BLOCK_HAVE_DATA' which, if not set, indicates that we have the header in the leveldb database but not the corresponding block data on disk in the .dat files.</p>
<p>Unfortunately I need that data for my parser to work, so I don't know (a) why it is missing and (b) how to get the data on my hard drive.</p>
<p>Is there some command line option I can pass when I launch the bitcoin core node software for make sure I have data for all blocks on my hard drive?</p>
<p>Thanks,</p>
<p>John W. Ratcliff</p>
<p>** Note: I asked this question of ChatGPT and it provided the following response. I don't know if it is correct or not, but I'm going to try it.</p>
<p><a href="https://i.sstatic.net/zn4n8.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zn4n8.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2023-05-06T04:05:47.010Z
To clarify, when you say "past", do you mean blocks older than 594606 or blocks newer than 594606?
Ava Chow
<raw-data>
Don't have full block data on my full node
John Ratcliff
# Don't have full block data on my full node

(Asked by: username_0 on 2023-05-05)

I am revising my blockchain parser and I'm encountering an issue where I only have block headers but not the corresponding block data on my machine for blocks past a certain height (on my machine it started at block #594606 and from there on I only had data for some blocks.) There is a bit flag 'BLOCK\_HAVE\_DATA' which, if not set, indicates that we have the header in the leveldb database but not the corresponding block data on disk in the .dat files.

Unfortunately I need that data for my parser to work, so I don't know (a) why it is missing and (b) how to get the data on my hard drive.

Is there some command line option I can pass when I launch the bitcoin core node software for make sure I have data for all blocks on my hard drive?

Thanks,

John W. Ratcliff

\*\* Note: I asked this question of ChatGPT and it provided the following response. I don't know if it is correct or not, but I'm going to try it.

[![enter image description here](https://i.sstatic.net/zn4n8.png)](https://i.sstatic.net/zn4n8.png)

**Tags:** raw-data

> **Comments:**
> **username_1**: To clarify, when you say "past", do you mean blocks older than 594606 or blocks newer than 594606?  

---

## 1 answers

### Answer by username_2 on 2023-05-05. Score: -1

Edit: I just realized that you say “past a certain height”. If you meant, that you don’t have the blocks below that height, my answer below applies. Otherwise, you might not have downloaded the remaining blocks yet?

---

It sounds like you are running your node in “pruning” mode. This is the default behavior when you are using `bitcoin-qt`, the GUI-mode. If you want to keep a complete copy of the blockchain you can either uncheck the option in the settings or add `prune=0` in the configuration (`bitcoin.conf`). Either way, you will need to indeed `reindex` after changing the setting to reacquire the missing blockdata.


---

