<p>Yes. All command line options can be specified in the bitcoin.conf file using the same name without the leading dash (<code>-</code>). For <code>-reindex-chainstate</code>, you add <code>reindex-chainstate=1</code> to your bitcoin.conf.</p>
<p>Note that putting options into the config will run them every time you start Bitcoin Core. In the case of <code>reindex-chainstate</code>, you really want to only use the flag once—you do not need to start with reindexing every time you restart Bitcoin Core. So be sure to remove any options that you only wanted to run once after restarting Bitcoin Core the first time.</p>

CC BY-SA 4.0
2021-06-15T23:28:11.347Z
Though, you really shouldn't. It's something you should only pass once. If you put it in your bitcoin.conf, it'll start over with reindexing every time you restart.
Pieter Wuille
CC BY-SA 4.0
2021-06-15T22:55:14.720Z
2022-12-27T15:36:27.133Z
2022-12-27T15:36:27.133Z
Ava Chow
<p>Is there a specific flag I can place in bitcoin.conf to reindex the chainstate (not command line)?</p>
<p>Ie:
reindex=1 does a full reindex is there a flag like
reindex-chainstate=1 or similar?</p>

<bitcoin-core><bitcoind><bitcoin.conf><reindex>
`reindex-chainstate` configuration in bitcoin.conf?
Bhavesh
# `reindex-chainstate` configuration in bitcoin.conf?

(Asked by: username_0 on 2021-06-15)

Is there a specific flag I can place in bitcoin.conf to reindex the chainstate (not command line)?

Ie:
reindex=1 does a full reindex is there a flag like
reindex-chainstate=1 or similar?

**Tags:** bitcoin-core, bitcoind, bitcoin.conf, reindex


---

## 1 answers

### Answer by username_1 on 2021-06-15. Score: 2

Yes. All command line options can be specified in the bitcoin.conf file using the same name without the leading dash (`-`). For `-reindex-chainstate`, you add `reindex-chainstate=1` to your bitcoin.conf.

Note that putting options into the config will run them every time you start Bitcoin Core. In the case of `reindex-chainstate`, you really want to only use the flag once—you do not need to start with reindexing every time you restart Bitcoin Core. So be sure to remove any options that you only wanted to run once after restarting Bitcoin Core the first time.

> **Comments:**
> **username_2**: Though, you really shouldn't. It's something you should only pass once. If you put it in your bitcoin.conf, it'll start over with reindexing every time you restart.  

---

