bitcoind – bitcoin-cli getrawtransaction not working as anticipated?

0
49


So I am making an attempt to arrange a full bitcoin node. I compiled bitcoin core high quality and I created a config file. I need to obtain your entire historical past of the blockchain, so I created a bitcoin.conf file in my ./bitcoin folder (the folder that I cloned from github). My file initially regarded like:

txindex=1
prune=9
maxconnections=15
dbcache=150
maxmempool=150
maxreceivebuffer=2500
maxsendbuffer=500

Then I ran bitcoind -daemon however realized that after I was working bitcoin-cli getrawtransaction 32892hf9nvh9832948294383 (pretend tx quantity) that it was returning an error saying that there is no such thing as a such mempool transaction. I spotted my mistake was placing prune in my bitcoin.conf file. So I eliminated that line in order that my file now seems like:

txindex=1
maxconnections=15
dbcache=150
maxmempool=150
maxreceivebuffer=2500
maxsendbuffer=500

Then I ran bitcoin-cli cease, then ran bitcoind -daemon -reindex. I believed this may be high quality, however I am nonetheless getting that no mempool transaction error after I attempt that very same transaction – and I verified that the method of obtain the blockchain has already moved previous that transaction date as a result of I ran bitcoin-cli getblockchaininfo and I regarded on the time key.

Do I’ve to attend for your entire blockchain to be downloaded earlier than I run these instructions? I might wish to know earlier than I waste a bunch of time doing this the incorrect means.

I respect your assist – thanks!

LEAVE A REPLY

Please enter your comment!
Please enter your name here