Does bitcoind not support txindex=1 option in regtest mode?

1

1

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 

Jus12

Posted 2017-12-07T07:18:08.853

Reputation: 1 243

Answers

2

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 <bitcoin-data-dir>/regtest folder

Jonas Schnelli

Posted 2017-12-07T07:18:08.853

Reputation: 5 465