decoderawtransaction should use hex or decimal, not both #30067

issue gmart7t2 openend this issue on May 9, 2024
  1. gmart7t2 commented at 0:01 am on May 9, 2024: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    I have two different op_return outputs, but they are shown identically in their “asm” decoding:

    0      "scriptPubKey": {
    1        "asm": "OP_RETURN 1431655765",
    2        "hex": "6a051431655765",
    3      }
    
    0      "scriptPubKey": {
    1        "asm": "OP_RETURN 1431655765",
    2        "hex": "6a0455555555",
    3      }
    

    One shows the hex value. The other shows the decimal value. It would be better to be consistent and always use one or the other.

    Expected behaviour

    Different scripts should look different

    Steps to reproduce

    Create the two scripts I showed and examine them

    Relevant log output

    No response

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    v27.0

    Operating system and version

    Ubuntu deleterious donkey or whatever

    Machine specifications

    I don’t think it really matters does it?

  2. sipa commented at 0:07 am on May 9, 2024: member
    Duplicate of #27795 ?
  3. willcl-ark added the label RPC/REST/ZMQ on May 9, 2024
  4. bitcoin deleted a comment on May 15, 2024
  5. maflcko commented at 5:42 pm on May 15, 2024: member
    Closing for now as duplicate
  6. maflcko closed this on May 15, 2024


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: 2024-12-23 09:12 UTC

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