Hi all! I'm running a slightly modified Bitcoin Core node (for our own educational blockchain, Bitcoin Edu,
https://github.com/bitcoinedu-io).
We recently upgraded the code base to 24.0. The RPC return format for getrawtransaction seems to have changed slightly, a single "address" is decoded instead of the "addresses" field. That's fine. But, we found one peculiar transaction (in our chain):
Old v21 bitcoind, one of the outputs:
"scriptPubKey": {
"asm": "02d316d8a24940934460a6c97de69718afb1ea6e5f054ae60b1c62e6cd2758e9ed OP_CHECKSIG",
"hex": "2102d316d8a24940934460a6c97de69718afb1ea6e5f054ae60b1c62e6cd2758e9edac",
"reqSigs": 1,
"type": "pubkey",
"addresses": [
"1DZxEMQqMHdgcazmMk4XtedUmXhsntzuMN"
]
}
But, the new v24 bitcoind, responds with:
"scriptPubKey": {
"asm": "02d316d8a24940934460a6c97de69718afb1ea6e5f054ae60b1c62e6cd2758e9ed OP_CHECKSIG",
"desc": "pk(02d316d8a24940934460a6c97de69718afb1ea6e5f054ae60b1c62e6cd2758e9ed)#jdtmre63",
"hex": "2102d316d8a24940934460a6c97de69718afb1ea6e5f054ae60b1c62e6cd2758e9edac",
"type": "pubkey"
}
Here we got no "address" at all. This is a bit rare, normally we get an "address" field and everything looks alright. But, in this case, why didn't the script get decoded? Anyone have a clue? A bug?