Bitcoin Forum
May 12, 2024, 10:48:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: testnet: how to spend non-standard output?  (Read 610 times)
amaclin (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
March 29, 2014, 03:10:19 PM
 #1

Please, help me with two txs
http://test.webbtc.com/tx/73e64e38faea386c88a578fd1919bcdba3d0b3af7b6302bf6ee1b423dc4e4333
http://test.webbtc.com/tx/d85af546147ff78dfb06e9469ddfc84adc3ce00cda54db8d65b7617ff2b7661a

Their output scrips just push very long arrays of data without any OP_CHECKSIG
As far as I understand this value should convert to true
So, it is possible to redeem these outputs with empty scripts
However, the qt-client rejects redeem transaction with errorcode -22
What is wrong?

Code:
sendrawtransaction 010000000133434edc23b4e16ebf02637bafb3d0a3dbbc1919fd78a5886c38eafa384ee6730000000000ffffffff0100f2052a010000001976a9149ed2747b05faac46b84afd1729c6cbf1591d358688ac00000000

TX rejected (code -22)

decoderawtransaction 010000000133434edc23b4e16ebf02637bafb3d0a3dbbc1919fd78a5886c38eafa384ee6730000000000ffffffff0100f2052a010000001976a9149ed2747b05faac46b84afd1729c6cbf1591d358688ac00000000

{
"txid" : "c396703fd9dac1aa791a140acac5ba51dc1e004e777088ef1c8a5b83c3a56f99",
"version" : 1,
"locktime" : 0,
"vin" : [
{
"txid" : "73e64e38faea386c88a578fd1919bcdba3d0b3af7b6302bf6ee1b423dc4e4333",
"vout" : 0,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
}
],
"vout" : [
{
"value" : 50.00000000,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 9ed2747b05faac46b84afd1729c6cbf1591d3586 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a9149ed2747b05faac46b84afd1729c6cbf1591d358688ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"muzjB2si6iYS5Nrf71YfGVap7jfBxuTPr2"
]
}
}
]
}
1715554137
Hero Member
*
Offline Offline

Posts: 1715554137

View Profile Personal Message (Offline)

Ignore
1715554137
Reply with quote  #2

1715554137
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715554137
Hero Member
*
Offline Offline

Posts: 1715554137

View Profile Personal Message (Offline)

Ignore
1715554137
Reply with quote  #2

1715554137
Report to moderator
1715554137
Hero Member
*
Offline Offline

Posts: 1715554137

View Profile Personal Message (Offline)

Ignore
1715554137
Reply with quote  #2

1715554137
Report to moderator
piotr_n
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
March 29, 2014, 07:45:14 PM
 #2

executing pkscrip (from the output you're trying to spend) fails in EvalScript(), at this check:

Code:
    if (script.size() > 10000)
        return false;

the pkscript from that coinbase transaction is almost 1MB - that's the reason, it makes it unspendable.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!