Nulldata treated as nonstandard #22045

issue tieugene opened this issue on May 24, 2021
  1. tieugene commented at 2:49 PM on May 24, 2021: none

    bitcoind returns 'nonstandard' addresses from scripts started from OP_RETURN. E.g. in first 300 kiloblocks (bk.tx.vout):

    • 229712.129.1
    • 257727.91.1
    • 257727.93.1
    • 283396.596.1
    • 296195.12.0
    • 299571.10.2

    As an example - vout 229712.129.1 (block height 229712, tx 129, vout 1):

    {
      "value": 0.00000000,
      "n": 1,
      "scriptPubKey": {
        "asm": "OP_RETURN OP_DUP OP_HASH160 cd2b3298b7f455f39805377e5f213093df3cc09a OP_EQUALVERIFY OP_CHECKSIG",
        "hex": "6a76a914cd2b3298b7f455f39805377e5f213093df3cc09a88ac",
        "type": "nonstandard"
      }
    }
    
  2. tieugene added the label Bug on May 24, 2021
  3. theStack commented at 5:00 PM on May 24, 2021: member

    Hi tieugene,

    note that an output script has to satisfy two conditions to be classified as Nulldata:

    • starts with OP_RETURN
    • the remaining part only consists of push-operations (the corresponding checking method in the code is named IsPushOnly)

    The seconds condition is not fulfilled in your given example, hence the scriptPubKey is "nonstandard".

    (I didn't look at the other instances you listed though)

  4. MarcoFalke closed this on May 25, 2021

  5. MarcoFalke removed the label Bug on May 25, 2021
  6. MarcoFalke added the label Feature on May 25, 2021
  7. tieugene commented at 5:54 PM on May 25, 2021: none
    • starts with OP_RETURN
    • the remaining part only consists of push-operations (the corresponding checking method in the code is named IsPushOnly)

    But this means that 'OP_RETURN hello world' is not proper nulldata? Where I can find BIP or other RTFM that describes valid nulldata payload?

  8. MarcoFalke commented at 5:56 PM on May 25, 2021: member

    Usually the issue tracker is used to track technical issues related to the Bitcoin Core code base. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange or the #bitcoin IRC channel on freenode.

  9. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-02 12:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me