-
Notifications
You must be signed in to change notification settings - Fork 64
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
getrawtransaction returns wrong value in 8.22 #263
Comments
So this is not a bug, this was an intentional change in BTC v21 and 22. The See more here: https://bitcoincore.org/en/releases/22.0/
You can read more about why this change happened here: bitcoin/bitcoin#20286 I believe if you add the following to your digibyte.conf and reboot it will return as you want it, knowing there can be errors with certain address types: The code is still there for this to work. digibyte/src/rpc/rawtransaction.cpp Lines 136 to 140 in 21698e7
If you describe exactly what you are trying to do exactly perhaps I could provide some further suggestions. |
@JaredTate i noticed the format change. The issue is the data is missing in some transactions but not others. |
Some good homework done there, Jared. But that seems not completely related to the details Matthew has provided on this issue. The first hash provided, where the Futhermore, it seems to me that in the pull referred to by Jared above has not only deprecated It is very strange that the output of This all being said, considering that Hope this clarifies things. |
To be clear. There is no address field in the transaction that is missing data and there is an address field in the transaction that has it. This is the bug. Chain explorers and other apps need this value and the value is not being consistently returned. |
Is one transaction using P2PK coinbase(2014) and the other using P2PKH(2015)? And if I'm understanding it correctly, in BTC Core V21+ "address guessing" was intentionally removed specifically for P2PK outputs. |
getrawtransaction 93345c6990b11c8914efd84b17f7578d5455d4b37351c5bfa2b237e70b0ef414 true
returns
{
"txid": "93345c6990b11c8914efd84b17f7578d5455d4b37351c5bfa2b237e70b0ef414",
"hash": "93345c6990b11c8914efd84b17f7578d5455d4b37351c5bfa2b237e70b0ef414",
"version": 1,
"size": 109,
"vsize": 109,
"weight": 436,
"locktime": 0,
"vin": [
{
"coinbase": "0465f1d2520101062f503253482f",
"sequence": 4294967295
}
],
"vout": [
{
"value": 16000.00000000,
"n": 0,
"scriptPubKey": {
"asm": "026d21d088b909e7add88537a76f5bd9f0805100ae77c837d8824992c52af1560e OP_CHECKSIG",
"hex": "21026d21d088b909e7add88537a76f5bd9f0805100ae77c837d8824992c52af1560eac",
"type": "pubkey"
}
}
],
"hex": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0e0465f1d2520101062f503253482fffffffff0100806e87740100002321026d21d088b909e7add88537a76f5bd9f0805100ae77c837d8824992c52af1560eac00000000",
"blockhash": "b219bd61130482d390123ecc5dfb0bd1534f7bfaa7c34deb69054f0966a2e9a0",
"confirmations": 20550841,
"time": 1389556069,
"blocktime": 1389556069
}
vout[0] should contain address: DMohanLebsV1baP2Ms3iTP9twJDWfPZg3a
works correctly on 7.17.3
trying a newer transaction
getrawtransaction 745e3f36c10f40d30786ff7d41166503071420957e050dda0aea0c1ffb22c9f2 true
works correctly.
The text was updated successfully, but these errors were encountered: