I have two client Bitcoin, 0.17.0 and 0.12.0 and I want to see the difference between the same transaction. 0.17 has segwit, 0.12 doesn't have. If I do that RPC call in 0.17.0
/bin/bitcoin-cli -datadir=./datadir getrawtransaction 6b6d286189a73d1fde6710cf7d168d0414e12d7a71e156e538e101ddc05f247a true
I can see the transaction in detail.
If I repeat the same call in 0.12 I can see the same result.
I expected that the node (0.12) stripped field like txinwitness
I use the same datadir for each node.
Why I can see this result inside vin
"scriptSig": {
"asm": "001458f0440b4c57e6f537f519f2e991e7ee1b7bae36",
"hex": "16001458f0440b4c57e6f537f519f2e991e7ee1b7bae36"
},
What is 001458f0440b4c57e6f537f519f2e991e7ee1b7bae36
?
Another question, how can I find a P2WPKH transaction?
-- Update --
I try to add rpcserialversion=0
in one node, and when I use getrawtransaction
I can see the hex without segwit elements.
I can see in wiki
-rpcserialversion Sets the serialization of raw transaction or block hex returned in non-verbose mode, non-segwit(0) or segwit(1) (default: 1)
In fact if I use verbose I can see txinwitness. txinwitness is stripped in node legacy?