I'm reading through Mastering Bitcoin and trying to follow along the examples.
When I first initialized bitcoind, I set txindex=1 in my bitcoin.conf file. In a later example I was unable to getrawtransaction which failed with the error No such mempool transaction. I re-ran bitcoind with the -txindex=1 and -reindex flags, which took a few hours.
However I'm still unable to getrawtransaction, which again fails with the same error.
Have anyone experienced the same issues? Perhaps there is something else that needs to be done for this to work in v0.16.0?
Any advice would be appreciated. Thanks.
Edit 1:
~/Library/Application Support/Bitcoin/bitcoin.conf:
txindex=1
~/Library/Application Support/Bitcoin/debug.log: