There's still an issue with "decoderawtransaction" in core version v0.18.1. Like, I can't decode Tx 54549260d3aa4ee5410022e209699844fb2e2b7d1059221e8c03fb5bad211533 properly because it doesn't recognize the witness field. I heard this bug got fixed in a newer version. My question is, which version exactly fixed it? What's the earliest version where this bug doesn't exist? If anyone has any info, that'd be awesome! Thanks!
Edit: I did a bit of testing and found the answer myself. In V.0.21.1 the issue is gone.
Which version fixed the decoderawtransaction bug?
4 replies 80 views
I was looking for a commit in the repository that mentioned this and couldn't find it, but let's assume it was because the improvement was made gradually and not in a single update, since this was improved incrementally over time.
Let's see: https://github.com/bitcoin/bitcoin/pull/8149
If you want to find a commit, where Segwit was introduced, then it is here: https://github.com/bitcoin/bitcoin/commit/d612837814020ae832499d18e6ee5eb919a87907
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#4Jan 6, 2025, 02:48 AM
It's actually in v0.21.0, just a minor version lower than it.
BTW, it'll work in your v0.18.1 if you add is_witness flag (true) after the raw transaction hex in the command.
If you're looking for the PR and Commit, here are those:
Commit, basically switched the order of try_witness and try_no_witness: /bitcoin/commit/6020ce3c01fe5ee15a236c47da23342005b63055Related Pull Request: /bitcoin/pull/17775
perfect, thank you very much!
Related topics
- Bitcoin Core displaying coins (UTXOs) in a new tab 13
- Are you in favor of BIP-110? Let's get a Bitcoin poll going. 0
- Erlay seems to have some issues here’s a better proposal for a bitcoin protocol without invites 3
- New Optional Hourglass Implementation is Live 3
- Ways to earn some sats by contributing to bitcoin core development 5
- Exploring the Potential and Challenges of a Kardashev-Scale Bitcoin Network 3