<p>If bitcoind stops, them you should have a look in your <code>debug.log</code> file.
Enabling <code>-txindex</code> with an already initialised blockchain (not your first regtest start) requires a reindex.</p>

<p>Either you start with <code>-reindex-chainstate</code> or you delete your <code>&lt;bitcoin-data-dir&gt;/regtest folder</code></p>

CC BY-SA 3.0
2017-12-07T07:34:30.183Z
2017-12-07T07:34:30.183Z
Jonas Schnelli
<p>Is it possible to specify <code>txindex=1</code> option in bitcoin.conf or elsewhere?
It doesn't seem to work. Whenever I run <code>bitcoind -daemon</code>, it stops. </p>

<p>If I remove <code>txindex=1</code> from the conf file, it works. </p>

<p>I am using regtest mode.</p>

<p>Here is the conf file:</p>

<pre><code>rpcuser=abc
rpcpassword=secret
regtest=1
rpcport=8332
txindex=1 
</code></pre>

<bitcoind><regtest><bitcoin.conf>
Does bitcoind not support txindex=1 option in regtest mode?
Jus12
# Does bitcoind not support txindex=1 option in regtest mode?

(Asked by: username_0 on 2017-12-07)

Is it possible to specify txindex=1 option in bitcoin.conf or elsewhere?
It doesn't seem to work. Whenever I run bitcoind -daemon, it stops. 
If I remove txindex=1 from the conf file, it works. 
I am using regtest mode.
Here is the conf file:
rpcuser=abc
rpcpassword=secret
regtest=1
rpcport=8332
txindex=1

**Tags:** bitcoind, regtest, bitcoin.conf


---

## 1 answers

### Answer by username_1 on 2017-12-07. Score: 2 | Accepted answer

If bitcoind stops, them you should have a look in your `debug.log` file.
Enabling `-txindex` with an already initialised blockchain (not your first regtest start) requires a reindex.

Either you start with `-reindex-chainstate` or you delete your `/regtest folder`


---

