Title: strange bitcoind reindex and txindex Post by: linger_wang on September 08, 2018, 12:22:06 PM hey guys.i am doing some statistic on Tx infomation of the whole blockchain.so in order to eable a local rpc server,i set
Code: server=1 after doing this,i reindex chainstate and start bitcoind with the option -txindex.but when i query transactions usually i get Code: example:bitcoin-cli getrawtransaction 2157b554dcfda405233906e461ee593875ae4b1b97615872db6a25130ecc1dd6 1 and what odd is that when i Code: bitcoin-cli getrawtransaction 8d0baa2c4d30e841e9b826ff8a99800032b112ca8368001e0e07fdeaa1fb4a2c 1 i am curious about what happened here,and what can i do to get the Tx message i want. Title: Re: strange bitcoind reindex and txindex Post by: aleksej996 on September 09, 2018, 11:00:25 AM Seems like that particular transaction wasn't indexed for some reason.
The configuration should be fine. Try starting bitcoind with -reindex option to reindex the transactions again. Title: Re: strange bitcoind reindex and txindex Post by: achow101 on September 09, 2018, 04:16:53 PM Is your node fully synced? What do you get from the getblockchaininfo command?
Title: Re: strange bitcoind reindex and txindex Post by: TheArchaeologist on September 11, 2018, 09:10:53 AM Is your node fully synced? What do you get from the getblockchaininfo command? Both transactions seem to be from the same block with height 500000.I personally have no problem getting the right response for both transactions though with bitcoin-cli so I'm not sure what is going on. Title: Re: strange bitcoind reindex and txindex Post by: TheArchaeologist on September 11, 2018, 09:14:33 AM Code: example:bitcoin-cli getrawtransaction 2157b554dcfda405233906e461ee593875ae4b1b97615872db6a25130ecc1dd6 1 "No such mempool or blockchain transaction. Use gettransaction for wallet transactions." Title: Re: strange bitcoind reindex and txindex Post by: linger_wang on September 14, 2018, 07:10:15 AM Seems like that particular transaction wasn't indexed for some reason. The configuration should be fine. Try starting bitcoind with -reindex option to reindex the transactions again. i did reindex twice.but seems didn't work. Title: Re: strange bitcoind reindex and txindex Post by: linger_wang on September 14, 2018, 07:21:54 AM Is your node fully synced? What do you get from the getblockchaininfo command? Both transactions seem to be from the same block with height 500000.I personally have no problem getting the right response for both transactions though with bitcoin-cli so I'm not sure what is going on. Code: "chain": "main", i doubt that it could be a problem of the use of newest core vision? right now i turn to use api provided by blockchaininfo website to query tx info. Title: Re: strange bitcoind reindex and txindex Post by: aleksej996 on September 16, 2018, 01:17:03 PM Anything interesting in the debug.log file?
You should share the log here if there is anything suspicious about it. Otherwise it would be a very weird problem. Title: Re: strange bitcoind reindex and txindex Post by: Lauda on September 18, 2018, 08:31:58 AM i doubt that it could be a problem of the use of newest core vision? Checked both on v0.16.2; both work fineAnything interesting in the debug.log file? This. Clean your log, run both commands and copy the output of debug.log here. |