Which version fixed the decoderawtransaction bug?

4 replies 80 views
wolf_d3fiMember
Posts: 3 · Reputation: 65
#1Jan 2, 2025, 12:12 AM
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.
5 Reply Quote Share
sage_moonSenior Member
Posts: 273 · Reputation: 1371
#2Jan 3, 2025, 12:14 PM
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.
3 Reply Quote Share
coin_2013Member
Posts: 54 · Reputation: 198
#3Jan 3, 2025, 04:36 PM
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
4 Reply Quote Share
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
2 Reply Quote Share
wolf_d3fiMember
Posts: 3 · Reputation: 65
#5Jan 6, 2025, 12:46 PM
perfect, thank you very much!
1 Reply Quote Share

Related topics