Bitcoin-abc: getblock verbose mode. Field missing for txs: hex

Created on 9 Nov 2018  路  2Comments  路  Source: Bitcoin-ABC/bitcoin-abc

Can you reliably reproduce the issue?

  1. call getblock on a block with verbose 2.
  2. The listed txs doesn't have a hex field.

Expected behaviour

Calling getblock <blockhash> 2 on a block I expect to see also hex in txs. Like in bitcoind.

Actual behaviour

The listed txs have no hex field:

{
  "hash": "0000000027a7f5d35d5d5b255b2c9255813f6f569ee3b01d567ad3e492f3cf21",
  "confirmations": 26714,
  "size": 216,
  "height": 8316,
  "version": 1,
  "versionHex": "00000001",
  "merkleroot": "ffe5ae70c95b391938ee60f2c8d371e971426e7d7ce0c311270838c7ed4bdfb5",
  "tx": [
    {
      "txid": "ffe5ae70c95b391938ee60f2c8d371e971426e7d7ce0c311270838c7ed4bdfb5",
      "hash": "ffe5ae70c95b391938ee60f2c8d371e971426e7d7ce0c311270838c7ed4bdfb5",
      "size": 135,
      "version": 1,
      "locktime": 0,
      "vin": [
        {
          "coinbase": "04ffff001d025904",
          "sequence": 4294967295
        }
      ],
      "vout": [
        {
          "value": 50.00000000,
          "n": 0,
          "scriptPubKey": {
            "asm": "04fb118af60ec5ac3a801e9813509d7f13674bc0d85ed8c575a48cea92352d3a2072f87e82d061091156bceef6088aac419e44c9d637bd7ba6c8785ff0886ccfcc OP_CHECKSIG",
            "hex": "4104fb118af60ec5ac3a801e9813509d7f13674bc0d85ed8c575a48cea92352d3a2072f87e82d061091156bceef6088aac419e44c9d637bd7ba6c8785ff0886ccfccac",
            "reqSigs": 1,
            "type": "pubkey",
            "addresses": [
              "bitcoincash:qrxysqzcfvn3lts5830w7kgrr94ky857w5jtxrfeh3"
            ]
          }
        }
      ]
    }
  ],
  "time": 1237739784,
  "mediantime": 1237737028,
  "nonce": 4168929846,
  "bits": "1d00ffff",
  "difficulty": 1,
  "chainwork": "0000000000000000000000000000000000000000000000000000207d207d207d",
  "previousblockhash": "00000000f2256ba62635f7918d0f685fc34447cc5eff1cd523b555f716435710",
  "nextblockhash": "000000006c30cbb5fe068b63a4635c9c596f77b5490ffc6160c93840141eac61"
}

What version of bitcoin-abc are you using?

0.18.3

bug

All 2 comments

See my additional comments in #275. Taking in this backport is the preferable fix: https://reviews.bitcoinabc.org/T500 I've assigned it to myself and will target the next release. I'll also update and close this ticket once the change is in master.

This has been fixed on master and will be available in the next release:
https://reviews.bitcoinabc.org/D2499
https://reviews.bitcoinabc.org/D2513

Was this page helpful?
0 / 5 - 0 ratings