Пытаюсь отослать такие транзакции через bitcoin-qt console (sendrawtransaction). В обеих случаях получаю TX rejected (code -22). Никто не знает, в чем может быть проблема?
Пример 1:
http://blockexplorer.com/testnet/tx/b6f797665c07ae87e1f2473a41ddd28724954f8109bc2cd0a5b9d98db057f231
Output script: OP_HASH256 19c6197e2140b9d034fb20b9ac7bb753a41233caf1e1dafda7316a99cef41416 OP_EQUALVERIFY
Хеш в скрипте это DoubleSHA256([1, 2, 3]).
Raw transaction:
010000000131f257b08dd9b9a5d02cbc09814f952487d2dd413a47f2e187ae075c6697f7b6000000000403010203ffffffff0140899500000000001976a9147593bcb001ff8859764b4ffd61233bb3a7971c5988ac00000000
{
"txid" : "67c897e33ef2d9ec4464266c79d7b4a8afc783d8b5401e510227a3d6db42e75c",
"version" : 1,
"locktime" : 0,
"vin" : [{
"txid" : "b6f797665c07ae87e1f2473a41ddd28724954f8109bc2cd0a5b9d98db057f231",
"vout" : 0,
"scriptSig" : {
"asm" : "197121",
"hex" : "03010203"
},
"sequence" : 4294967295
}],
"vout" : [{
"value" : 0.09800000,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 7593bcb001ff8859764b4ffd61233bb3a7971c59 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a9147593bcb001ff8859764b4ffd61233bb3a7971c5988ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [ "mrEeLT14n2DN7fQnTas2vU4QkWjejS94BN" ]
}
}]
}
Пример 2:
http://blockexplorer.com/testnet/tx/f036c6cbb4f281c782bcb156a34a5ab088b85ee383a377da81d6cb7147fcf6a2
Output script: OP_EQUALVERIFY
Raw transaction:
0100000001a2f6fc4771cbd681da77a383e35eb888b05a4aa356b1bc82c781f2b4cbc636f00000000008030a0a0a030a0a0affffffff0140899500000000001976a9147593bcb001ff8859764b4ffd61233bb3a7971c5988ac00000000
{
"txid" : "845b746563dfa0f0054a1b456aa115f277ef4091a1eafce26748c07f1f7c2130",
"version" : 1,
"locktime" : 0,
"vin" : [{
"txid" : "f036c6cbb4f281c782bcb156a34a5ab088b85ee383a377da81d6cb7147fcf6a2",
"vout" : 0,
"scriptSig" : {
"asm" : "657930 657930",
"hex" : "030a0a0a030a0a0a"
},
"sequence" : 4294967295
}],
"vout" : [{
"value" : 0.09800000,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 7593bcb001ff8859764b4ffd61233bb3a7971c59 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a9147593bcb001ff8859764b4ffd61233bb3a7971c5988ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : ["mrEeLT14n2DN7fQnTas2vU4QkWjejS94BN"]
}
}]
}