bitcoin / bitcoin

Bitcoin Core integration/staging tree
https://bitcoincore.org/en/download
MIT License
78.48k stars 36.18k forks source link

getrawtransaction is error #9040

Closed truongthaison closed 7 years ago

truongthaison commented 7 years ago

I use VPS centos 7, and i install bitcoind follow: https://www.ringingliberty.com/bitcoin/

this is file bitcoin.conf:

rpcuser=bitcoinrpc
rpcpassword=My_password
daemon=1
rpctimeout=30
rpcport=8332
gen=0
txindex=1
keypool=100

Then i ran: bitcoind -reindex -deamonthen ran: bitcoin-cli getrawtransaction string_txid

i get error:

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

I use: Bitcoin Core Daemon version v0.13.0.0-ga402396

I don't know wrong?

maflcko commented 7 years ago

Unrelated thought: We should include in the error message if txindex is set.

maflcko commented 7 years ago

@Vagabondtq What is the length of the string_txid? Did you accidentally remove or add chars to the string?

knoxcard commented 7 years ago

Did you run the command exactly as "bitcoin-cli getrawtransaction string_txid"

string_txid must be a hexadecimal string

maflcko commented 7 years ago

@Vagabondtq Can you try with current master again or provide further information to my previous question, please?

dougstrong77 commented 7 years ago

Can some one help me i dont under stand any thing i must be stupid how do i know that a transaction ia mine im looking at when i log into the block chain