Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decoderawtransaction should use hex or decimal, not both #30067

Closed
1 task done
gmart7t2 opened this issue May 9, 2024 · 2 comments
Closed
1 task done

decoderawtransaction should use hex or decimal, not both #30067

gmart7t2 opened this issue May 9, 2024 · 2 comments

Comments

@gmart7t2
Copy link

gmart7t2 commented May 9, 2024

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:

      "scriptPubKey": {
        "asm": "OP_RETURN 1431655765",
        "hex": "6a051431655765",
      }
      "scriptPubKey": {
        "asm": "OP_RETURN 1431655765",
        "hex": "6a0455555555",
      }

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?

@sipa
Copy link
Member

sipa commented May 9, 2024

Duplicate of #27795 ?

@bitcoin bitcoin deleted a comment from mozz30-tech May 15, 2024
@maflcko
Copy link
Member

maflcko commented May 15, 2024

Closing for now as duplicate

@maflcko maflcko closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants