public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: Flavien Charlon <flavien.charlon@coinprism•com>
To: Bitcoin Dev <bitcoin-development@lists•sourceforge.net>
Subject: [Bitcoin-development] Bug with handing of OP_RETURN?
Date: Sat, 3 May 2014 19:04:52 +0100	[thread overview]
Message-ID: <CABbpET-uDQRFQ_XAFeWkgc=A1jEW62Q+8BTZZuW5UbZXX0y+HQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2339 bytes --]

Can someone enlighten me on why the following transaction is being rejected
by Bitcoind 0.9.1 with error code -22 on Mainnet.

01000000015594a8c1f84b926e84d70c3a3d5e517e0c12dc07cb1a774b587121fef08f91b8000000006b48304502202f534407f6dee4d8932ec22491cbc15a2d31af2bade4e8d417e4b1955de57f5902210086e2f0210c16ffff9b85074429b1b1c2f32e19509d7ed19f7804ab7212bd183a012102add59262e234c0045d1f6a3d40a144b47ea0b4214916f55fb6029a079cc0b3cbffffffff0358020000000000001976a9140f763005e063382f8f4138f75cdc64d14f8ec16f88ac00000000000000000a6a054f4101000102753d60860000000000001976a9140f763005e063382f8f4138f75cdc64d14f8ec16f88ac00000000


Debug.log shows the following:

ERROR: AcceptToMemoryPool : nonstandard transaction: scriptpubkey


Here is the decoded transaction:

{
>    "lock_time":0,
>    "inputs":[
>       {
>          "prev_out":{
>             "index":0,
>
> "hash":"b8918ff0fe2171584b771acb07dc120c7e515e3d3a0cd7846e924bf8c1a89455"
>          },
>
> "script":"48304502202f534407f6dee4d8932ec22491cbc15a2d31af2bade4e8d417e4b1955de57f5902210086e2f0210c16ffff9b85074429b1b1c2f32e19509d7ed19f7804ab7212bd183a012102add59262e234c0045d1f6a3d40a144b47ea0b4214916f55fb6029a079cc0b3cb"
>       }
>    ],
>    "vout_sz":3,
>
> "hash":"44130e812fa15f411c6accb739082eb81ecf074470cefb8e617ecf105690f6e1",
>    "vin_sz":1,
>    "out":[
>       {
>          "address":"12QkihKUyE1hAkv7wmaMj6V3QiN8FfMvpv",
>          "script_string":"OP_DUP OP_HASH160
> 0f763005e063382f8f4138f75cdc64d14f8ec16f OP_EQUALVERIFY OP_CHECKSIG",
>          "value":600,
>          "script":"76a9140f763005e063382f8f4138f75cdc64d14f8ec16f88ac"
>       },
>       {
>          "script_string":"OP_RETURN 4f41010001 753d",
>          "value":0,
>          "script":"6a054f4101000102753d"
>       },
>       {
>          "address":"12QkihKUyE1hAkv7wmaMj6V3QiN8FfMvpv",
>          "script_string":"OP_DUP OP_HASH160
> 0f763005e063382f8f4138f75cdc64d14f8ec16f OP_EQUALVERIFY OP_CHECKSIG",
>          "value":34400,
>          "script":"76a9140f763005e063382f8f4138f75cdc64d14f8ec16f88ac"
>       }
>    ],
>    "size":245,
>    "version":1
> }
>

Outputs are above dust, inputs are not spent. OP_RETURN is supposed to be
standard in 0.9.1 and the data is well below 40 bytes, so why is this being
rejected?

Thanks,
Flavien

[-- Attachment #2: Type: text/html, Size: 3648 bytes --]

             reply	other threads:[~2014-05-03 18:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-03 18:04 Flavien Charlon [this message]
2014-05-03 18:39 ` Peter Todd
2014-05-03 18:55   ` Mark Friedenbach
2014-05-03 19:08     ` Gregory Maxwell
2014-05-03 19:15       ` Mark Friedenbach
2014-05-04 13:25         ` Jeff Garzik
2014-05-04 12:07     ` Sergio Lerner
2014-05-05 17:30       ` Jeff Garzik
2014-05-04  5:15 ` Jeff Garzik
2014-05-04 10:05   ` Flavien Charlon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABbpET-uDQRFQ_XAFeWkgc=A1jEW62Q+8BTZZuW5UbZXX0y+HQ@mail.gmail.com' \
    --to=flavien.charlon@coinprism$(echo .)com \
    --cc=bitcoin-development@lists$(echo .)sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox