This question already has an answer here:

It seems that my local bitcoin testnet node are corrupted. Could you tell me how to rebuild blocks?

The reason why I think it is corrupted is as following.

For example, when I checked transaction "ed2ccc36c241ad00893d0596fe167a4df162989dbf8c5ff3916d4034e7f510c3" on my local testnet node, it returned the following error.

error code: -5
error message:
No information available about transaction

However, on testnet block reader it returned transaction info.

enter image description here

marked as duplicate by Pieter Wuille, Community Nov 30 '15 at 11:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Is this question different from your previous question? bitcoin.stackexchange.com/questions/41573/… – Nick ODell Nov 30 '15 at 7:26
  • Not different. However, I think this question is more simple. Therefore, I expect to delete the past one. – lalala Nov 30 '15 at 7:28
  • Dear Nick. Thank you for deleting my past question on behalf of me. – lalala Nov 30 '15 at 7:33
  • You're using get transaction on a non-wallet transaction, or getrawtransaction without enabling txindex. – Pieter Wuille Nov 30 '15 at 9:00
  • Dear Pieter Does it mean I should add txindex=1 to bitcoin.conf file? – lalala Nov 30 '15 at 9:41