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

Core RPC decoderawtransaction fails to decode PoDA state transactions #535

Open
bstr156 opened this issue Sep 12, 2023 · 0 comments
Open

Comments

@bstr156
Copy link
Member

bstr156 commented Sep 12, 2023

Syscoin Core RPC decoderawtransaction fails to decode PoDA state transactions. The same Bitcoin Core RPC decodes it fine without error.

Being able to use a local instance of Syscoin Core to decode transactions is important for request-heavy use cases like indexing/databasing to be performant and safe.

For now I am running a dummy instance of Bitcoin Core alongside Syscoin Core to divert decode failures to the Bitcoin instance for correct decoding.

The RPC should return JSON formatted transaction data

Sample TXid: 0486d26390a728eacb2c0e4e4b7338f64d356f33055de4b1c49acc4f35bda471

Sample decode:
decoderawtransaction 890000000001015e8c702b9a267ac7dcdc4a5050405041cc6f1bee7971030fea0bb6ed1b24d33b0000000000fdffffff020000000000000000236a2120d43069f2fb77216d1dbe195d8bcd62fcacdc3a7dfefbe45e8c23cbd83677e7dd38b3cc0500000000160014b458308784f327127a7e4d2655539806446b9c330247304402201182364ce96fe4c379d2d01d564456584f2f8b493fa3c5c7b38ffc14789e7b0802207f6faaf2eaa76509148cb05b52e47b04f5d94ffca5a11c0717fca98b4e486f36012103641251963a2006e4d4e9b2a1a92d4a46ac6824ebef71403803edc6a0a0082340c9b81800

Output:
error code: -22
error message:
TX decode failed

Bug can be reproduced consistently.

Steps:

  1. getrawtransaction 0486d26390a728eacb2c0e4e4b7338f64d356f33055de4b1c49acc4f35bda471
  2. decoderawtransaction <rawTx>

4.4.2
source: Binary release on Github

Ubuntu LTS

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant