Bitcoin Forum
May 03, 2024, 06:51:14 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / getrawtransaction not decoding address? on: September 09, 2023, 08:50:35 AM
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:

Code:
     "scriptPubKey": {
        "asm": "02d316d8a24940934460a6c97de69718afb1ea6e5f054ae60b1c62e6cd2758e9ed OP_CHECKSIG",
        "hex": "2102d316d8a24940934460a6c97de69718afb1ea6e5f054ae60b1c62e6cd2758e9edac",
        "reqSigs": 1,
        "type": "pubkey",
        "addresses": [
          "1DZxEMQqMHdgcazmMk4XtedUmXhsntzuMN"
        ]
      }

But, the new v24 bitcoind, responds with:

Code:
      "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?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!