3

I'm on testnet, I've created a raw tx and I'm using bitcoind. I've confirmed that the hex is formed correctly and signrawtransaction returns complete:true.

After I've run bitcoind sendrawtransaction raw_tx I get a hash returned, however when I look at http://blockexplorer.com the hash cannot be found.

I'm definitely on testnet.

Can anyone suggest any ideas?

1

2 Answers 2

2

When using sendrawtransaction if the hash is generated but not propagated, then first I would assume that bitcoind retry mechanism will eventually send to the network.

On build 8.99 the transaction will go through, AcceptToMemoryPool. Which will validate the tx. So unless you see error TX rejected 22, which could be anything, as the validation is not yet reported. Then it's safe to assume you just need to wait.

3
  • 2
    Only if the transaction applies to your own wallet, will it be rebroadcast. Sendrawtransaction behaves exactly as if the transaction was received from the network. Jan 9, 2014 at 20:16
  • 1
    @PieterWuille, Does this mean you should keep sending a transaction through sendrawtransaction until it appears on another node, or even in a block? Or would this be a bad practice and overload the network unnecessarily?
    – Mark
    Apr 9, 2014 at 22:59
  • @Mark Sending invalid transactions (e.g., double-, quadruple-, etc. -spending) would increase your node's banscore; see this.
    – Geremia
    May 31, 2017 at 0:27
0

Could it be as simple as not having confirmations? BlockExplorer seems to keep it's own block database, that's only updated when a new block is reported. Your transaction won't immediately appear there.

Perhaps run less ~/.bitcoin/debug.log and do SHIFT + F to track for new logs. Once you submit your transaction, watch for errors which hint at the reason for failure.

If possible, try verifying it's not being broadcast by using a second node. If it's running with the txindex=1 flag, you can do bitcoin-cli getrawtransaction <txid> 1 on arbitrary, non-wallet transactions. It should be possible after just a few seconds.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.