Invalid Transaction Decoded #19648

issue CBDotGuru opened this issue on August 2, 2020
  1. CBDotGuru commented at 11:44 PM on August 2, 2020: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    Expected Behavior Receive a properly decoded transaction

    <!--- What behavior did you expect? -->

    Actual Behavior An invalid transaction

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    To reproduce

    Run:

    bitcoin-cli getrawtransaction 2874a382bcc170b0cbdc6ab282e87ceb568d2998d1d5eecd2830df4a1a536615
    

    Received:

    01000000000101ffbaa9de558163e0859a4009c127aabb9068680677c88946debff0f9fc6bd7470200000000ffffffff024d540100000000001976a9140c1170010364444ccb4ba04acfa044e35f1b60f088ac6202f23d00000000220020f68b3314f2c35d6a3747d69aadf224b3a474508cbe68929d6493cb9008d53edc0300483045022100ef5e1f720745fc6ddc3199f93ab95fb2a0ad12c1940d64dffb0d624b0520f37c02207242f4751a078f741d83f3956612bbda484c0ab23932de7637bd44883ad8f6f8012551210260fc3f0c73f03d1a72d6feb688f368151f6d25a0dbeec30d718903a0e77c307e51ae00000000
    

    Decode:

    bitcoin-cli decoderawtransaction withTheAboveString
    

    Decoded to:

    {
      "txid": "af028057b9ba1585c5ec91308141c15bff91ad41f2115bc47db4bbf1757e7840",
      "hash": "af028057b9ba1585c5ec91308141c15bff91ad41f2115bc47db4bbf1757e7840",
      "version": 1,
      "size": 243,
      "vsize": 243,
      "weight": 972,
      "locktime": 0,
      "vin": [
      ],
      "vout": [
        {
          "value": 71701064965.69245441,
          "n": 0,
          "scriptPubKey": {
            "asm": "OP_OR OP_BOOLAND 09c127aabb9068680677c88946debff0f9fc6bd7470200000000ffffffff024d540100000000001976a9140c1170010364444ccb4ba04acfa044e35f1b60f088 OP_CHECKSIG OP_VER 15858 0 0 0 0 0020f68b3314f2c35d6a3747d69aadf224b3a474508cbe68929d6493cb9008d53edc 3164160 022100ef5e1f720745fc6ddc3199f93ab95fb2a0ad12c1940d64dffb0d624b0520f37c02207242f4751a078f741d83f3956612bbda484c0ab23932de7637bd44883ad8f6f8 37 1 0260fc3f0c73f03d1a72d6feb688f368151f6d25a0dbeec30d718903a0e77c307e 1 OP_CHECKMULTISIG",
            "hex": "859a4009c127aabb9068680677c88946debff0f9fc6bd7470200000000ffffffff024d540100000000001976a9140c1170010364444ccb4ba04acfa044e35f1b60f088ac6202f23d00000000220020f68b3314f2c35d6a3747d69aadf224b3a474508cbe68929d6493cb9008d53edc0300483045022100ef5e1f720745fc6ddc3199f93ab95fb2a0ad12c1940d64dffb0d624b0520f37c02207242f4751a078f741d83f3956612bbda484c0ab23932de7637bd44883ad8f6f8012551210260fc3f0c73f03d1a72d6feb688f368151f6d25a0dbeec30d718903a0e77c307e51ae",
            "type": "nonstandard"
          }
        }
      ]
    }
    

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    System information

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    Bitcoin Core version v0.20.99.0-24f702906

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    Linux AMD64

    <!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

    This was on a fully synced node. The transaction hash is valid, and the actual transaction is a valid one when inspecting on block explorers, however my node consistently responds with this raw string that translates into this odd transaction.

  2. CBDotGuru added the label Bug on Aug 2, 2020
  3. sipa commented at 12:06 AM on August 3, 2020: member

    Try decoderawtransaction <hex> true.

    This is a known issue, but inherent to transaction encoding. It is ambiguous whether this is a valid transaction with inputs, or a partial transaction without inputs. By specifying true, you let the decoder know that it is to be interpreted as a valid one.

  4. sipa closed this on Aug 3, 2020

  5. CBDotGuru commented at 12:41 AM on August 3, 2020: none

    ah ok, thanks for the quick response

  6. DrahtBot locked this on Feb 15, 2022
Contributors
Labels

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-03 15:14 UTC

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