3
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:
Can you give an example of a txid that fails like this? – Nate Eldredge – 2018-04-22T19:45:21.243
@NateEldredge any transaction without an unspent output really, just as expected if
txindexwas set to0. For an example, the below transactions give me that error:3fd3431462b46b4adc8e3da663582993ecbfebf62ef7de4d81115b235a5020de331dd436aebeb22c9b629d6a769fd3f679e18ca4c6c34b15d6b3ab9ce936cd0545ea0a3f6016d2bb90ab92c34a7aac9767671a8a84b9bcce6c019e60197c134b– Aleksander – 2018-04-22T20:40:45.073Is bitcoind fully reindexed? Can you post the contents of your bitcoin.conf and debug.log files? – Andrew Chow – 2018-04-22T21:47:26.973
@AndrewChow added to the original question – Aleksander – 2018-04-22T22:39:32.200