Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Cashlabs on April 30, 2014, 09:25:09 AM



Title: lost transaction at "bitcoind -testnet"
Post by: Cashlabs on April 30, 2014, 09:25:09 AM
hi..

i generated the following raw transaction
from p2sh address to p2sh address:

0100000001ac8a407274efe73c22ef07f146847c1fd709eeb13eff1d0e2b95eb217971e06301000 0
00fdfd000047304402207e2afa3aa241fb63af38f9d9625d436854fd598918689fa01d598833d15 d
09a7022000c241ca3259d2a1be478c9d093b80c9ad153f471cae009ba9e41f174f0e1df90148304 5
022100a4c72817e8024751ed28df021d009fe0057f8a7a2bff4678f5e0ad98015e5e070220407ed 5
6ddaa61162a805736fe1eea839cb796bcef7293366105505751d1fdb9d014c69522102e9dca19c0 4
a44eff5cd7305bb8b231b36da3cd044e04dcf402b78a24a1dbeb2e210339ff12e6a0d33de44ecf2 6
60794d9a93b0a1104f1efd77b5f582537543bd79d821039c60f3a69ba17654d6bb1d7f631b76245 3
1e7a447da9c6bc18892c6ae8af55f853aeffffffff01a0e498000000000017a914230729efd232c f
32161375ca5dc947cb98ab2b528700000000

and send it to my bitcoind running on testnet

>> Transaction posted.. txid: 96580812c0d2acd877bcd538ef2ab323904fba7276c50322eac734d9981fdcdd

after this i received a notification about this transaction and loaded again from bitcoind:

Detailed tx: {"txid":"96580812c0d2acd877bcd538ef2ab323904fba7276c50322eac734d9981fdcdd","version":1,"locktime":0,"vin":[{"txid":"63e0717921eb952b0e1dff3eb1ee09d71f7c8446f107ef223ce7ef7472408aac","vout":1,"scriptSig":{"asm":"0 304402207e2afa3aa241fb63af38f9d9625d436854fd598918689fa01d598833d15d09a7022000c 241ca3259d2a1be478c9d093b80c9ad153f471cae009ba9e41f174f0e1df901 3045022100a4c72817e8024751ed28df021d009fe0057f8a7a2bff4678f5e0ad98015e5e0702204 07ed56ddaa61162a805736fe1eea839cb796bcef7293366105505751d1fdb9d01 522102e9dca19c04a44eff5cd7305bb8b231b36da3cd044e04dcf402b78a24a1dbeb2e210339ff1 2e6a0d33de44ecf2660794d9a93b0a1104f1efd77b5f582537543bd79d821039c60f3a69ba17654 d6bb1d7f631b7624531e7a447da9c6bc18892c6ae8af55f853ae"},"sequence":4294967295,"n":0,"addr":"2MzNpC3JFGEizJTiNQrCJbjtaMcDcd6Pqzs","valueSat":10030000,"value":0.1003,"doubleSpentTxID":null}],"vout":[{"value":0.1002,"n":0,"scriptPubKey":{"asm":"OP_HASH160 230729efd232cf32161375ca5dc947cb98ab2b52 OP_EQUAL","reqSigs":1,"type":"scripthash","addresses":["2MvSSDkNirnjmEFXjgQMbRWP6MYzsopX633"]}}],"valueOut":0.1002,"size":338,"firstSeenTs":1398843617,"valueIn":0.1003,"fees":0.0001}

the transaction got included into the next block:
Block #227281
BlockHash 0000000093bdd2802d556967e31e918968ae4a3de3940138c48df433109196b8
....
"c3d832ed4194277059ca1b684ed7c0aad4d79905e4b6142d636442713c56c625"],
....

till now, everything looks fine.. some minutes later i rececked the transaction and ..
my bitcoind has no information about this transaction:

bitcoin@blockchain:~$ bitcoin-cli -testnet getrawtransaction 96580812c0d2acd877bcd538ef2ab323904fba7276c50322eac734d9981fdcdd
error: {"code":-5,"message":"No information available about transaction"}


extra interesting information:
blockexplorer/testnet cant handle p2sh addresses, beside of this looks fine:
http://blockexplorer.com/testnet/tx/96580812c0d2acd877bcd538ef2ab323904fba7276c50322eac734d9981fdcdd

testnet @ block.io looks fine too:
http://tbtc.blockr.io/tx/info/96580812c0d2acd877bcd538ef2ab323904fba7276c50322eac734d9981fdcdd

testnet @ insight io:
transaction looks fine..
http://test.insight.is/tx/96580812c0d2acd877bcd538ef2ab323904fba7276c50322eac734d9981fdcdd
but the block including this transaction has some trouble to (load forever)
http://test.insight.is/block/0000000093bdd2802d556967e31e918968ae4a3de3940138c48df433109196b8

someone a glue what happens?

thx..
  Martin


Title: Re: lost transaction at "bitcoind -testnet"
Post by: apxu on April 30, 2014, 12:24:12 PM
AFAIK, bitcoin indexes only the transactions which were sent from/to your addresses.
While the transaction was in the "memory pool" it was available.
When the block with this transaction arrived - bitcoind "forgot" about this transaction.

use parameter -txindex to keep all transactions in index