Skip to content
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

QueryBlocksDetailed does not populate transaction extra "raw" property in response #815

Open
brandonlehmann opened this issue May 13, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@brandonlehmann
Copy link
Collaborator

commented May 13, 2019

.transactions[i].extra.raw is not populated in the code as it should be.

Related code at

TransactionDetails Core::getTransactionDetails(const Crypto::Hash& transactionHash, IBlockchainCache* segment, bool foundInPool) const {

It fills other extra data at

transactionDetails.extra.publicKey = transaction->getTransactionPublicKey();

{
  "alreadyGeneratedCoins": 4320634212314,
  "alreadyGeneratedTransactions": 3748792,
  "baseReward": 2851467,
  "blockSize": 3286,
  "difficulty": 10620306795,
  "hash": "11e6ae64860069d746d20e87af58b9ade5e972cbe013e74142c4dcb6e3b0d721",
  "index": 1482767,
  "majorVersion": 5,
  "minorVersion": 0,
  "nonce": 1073748710,
  "prevBlockHash": "f5e0d7fe25e8491b84ee104b50cabbfab9c1717e90622f84d9e1f335f7303d63",
  "reward": 2851487,
  "sizeMedian": 592,
  "timestamp": 1557555799,
  "totalFeeAmount": 20,
  "transactions": [
    {
      "blockHash": "11e6ae64860069d746d20e87af58b9ade5e972cbe013e74142c4dcb6e3b0d721",
      "blockIndex": 1482767,
      "extra": {
        "nonce": [
          0,
          0,
          0,
          0,
          0,
          191,
          5,
          2,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "publicKey": "e63c198d0f0de71b266ca3533f81ea2e925d61c063b1e52380503a65034d5f85",
        "raw": ""
      },
      "fee": 0,
      "hash": "35118bfae53759ca7043bad642429c0537a88a169a58bb475ce69c99280d5cdc",
      "inBlockchain": true,
      "inputs": [
        {
          "data": {
            "amount": 2851487,
            "input": {
              "height": 1482767
            }
          },
          "type": "ff"
        }
      ],
      "mixin": 0,
      "outputs": [
        {
          "globalIndex": 308090,
          "output": {
            "amount": 7,
            "target": {
              "data": {
                "key": "bccde442bfcadc5c6a39964ffffd217807ff34525c5ca8de789c1806aab0a32b"
              },
              "type": "02"
            }
          }
        },
        {
          "globalIndex": 471331,
          "output": {
            "amount": 80,
            "target": {
              "data": {
                "key": "570361a7dffea244173c98c4cafe3aa31610a889ce30d420efda3d07ee3db95e"
              },
              "type": "02"
            }
          }
        },
        {
          "globalIndex": 1645078,
          "output": {
            "amount": 400,
            "target": {
              "data": {
                "key": "971eb4df6762b1c71acd7ba719b7c6578d30cd3dbed144c6d85f187d48d2e58e"
              },
              "type": "02"
            }
          }
        },
        {
          "globalIndex": 2097176,
          "output": {
            "amount": 1000,
            "target": {
              "data": {
                "key": "54caf5eb919dcbb9ef7ded1fb29e1939cbb3c9ff6b61ef475b668cdf0ec4235c"
              },
              "type": "02"
            }
          }
        },
        {
          "globalIndex": 3777566,
          "output": {
            "amount": 50000,
            "target": {
              "data": {
                "key": "3e4e42ad61d15e438234af2bb08bf8361f31d19a3efaa5929cbe7be379891c88"
              },
              "type": "02"
            }
          }
        },
        {
          "globalIndex": 869094,
          "output": {
            "amount": 800000,
            "target": {
              "data": {
                "key": "92892eab70fd711891dcef0c5e166272b5994ae2e2ea7d0819dc95c87c956085"
              },
              "type": "02"
            }
          }
        },
        {
          "globalIndex": 1708816,
          "output": {
            "amount": 2000000,
            "target": {
              "data": {
                "key": "b3cf727fb990adc5b6c8717d3d4bfddc8dfb0857ddf4c781c4b6993e208f6de0"
              },
              "type": "02"
            }
          }
        }
      ],
      "paymentId": "0000000000000000000000000000000000000000000000000000000000000000",
      "signatures": [],
      "signaturesSize": 0,
      "size": 309,
      "timestamp": 1557555799,
      "totalInputsAmount": 0,
      "totalOutputsAmount": 2851487,
      "unlockTime": 1482807
    },
    {
      "blockHash": "11e6ae64860069d746d20e87af58b9ade5e972cbe013e74142c4dcb6e3b0d721",
      "blockIndex": 1482767,
      "extra": {
        "nonce": [],
        "publicKey": "5be710ada83397322b717fa25abeffb718c9d47a3e07be788ca3f0c44dbb8d05",
        "raw": ""
      },
      "fee": 10,
      "hash": "9ddfedb4eb6789d40d825e9c3f648e1979c660d0140f2a191160711a5c292809",
      "inBlockchain": true,
      "inputs": [
        {
          "data": {
            "input": {
              "amount": 60,
              "k_image": "0bec7e3b2cf3163e326cc0e129889b5eb937c3cabb92b3cba59331b9f847931d",
              "key_offsets": [
                431663,
                1,
                1,
                76
              ]
            },
            "mixin": 4,
            "output": {
              "number": 2,
              "transactionHash": "8f930c69169eb707ae215db2e4b798d14dd6271c48aec47222402587b4875158"
            }
          },
          "type": "02"
        }
      ],
      "mixin": 4,
      "outputs": [
        {
          "globalIndex": 1356201,
          "output": {
            "amount": 1,
            "target": {
              "data": {
                "key": "0eb5430ef6e6ea58d56c4cba4b38cf50a2f55fa6be921cee09e8f0024c164876"
              },
              "type": "02"
            }
          }
        },
        {
          "globalIndex": 379159,
          "output": {
            "amount": 9,
            "target": {
              "data": {
                "key": "1f31c89dbec8843e8ddadaf07612d3499036d44f0d2c707853650624634d207f"
              },
              "type": "02"
            }
          }
        },
        {
          "globalIndex": 422669,
          "output": {
            "amount": 40,
            "target": {
              "data": {
                "key": "873fe155a45ad1b837f644b36361a811cba80b81d9b368e5e9e1fb7b9de34cbf"
              },
              "type": "02"
            }
          }
        }
      ],
      "paymentId": "0000000000000000000000000000000000000000000000000000000000000000",
      "signatures": [
        {
          "first": 0,
          "second": "4a2c39d43d7a1c55cfd1582ca93b379af6cda5d2b2fa610e630057640be14d00e198a51b9f0bad7a456558fb960fbffc0d5e7dae39d30d57aeb8e7fbbe805a05"
        },
        {
          "first": 0,
          "second": "f46b5610a9462c34a223d716ba244251e4dfe300e33a61517bae6f6dfb9367067567390e6ef9900be1bae922ff784287e38f250ac5beec4a1aa9c92b70c3250a"
        },
        {
          "first": 0,
          "second": "c2ba14961a970c7032fb76cb96218ec7d5bec279a957d4d821a68d132e487d08d30571d5fafb04975dfd22ebf6d03b5738295236efb58f06e1e00cccbe47bf08"
        },
        {
          "first": 0,
          "second": "fdcdeba14b88f5a1d3d2653363b1c0d64a6df2c966584873be34d71e2f2c0a02c233e5bef840c2474edceb3b3af1cf221b8f913f32685015dbe4ad67d4d27901"
        }
      ],
      "signaturesSize": 1,
      "size": 1237,
      "timestamp": 1557555799,
      "totalInputsAmount": 60,
      "totalOutputsAmount": 50,
      "unlockTime": 0
    },
    {
      "blockHash": "11e6ae64860069d746d20e87af58b9ade5e972cbe013e74142c4dcb6e3b0d721",
      "blockIndex": 1482767,
      "extra": {
        "nonce": [],
        "publicKey": "09bc2a639f6ba87f4f544bc263347e076fa17a254db48c2af5bd03f8285d3f3c",
        "raw": ""
      },
      "fee": 10,
      "hash": "bc9851875611e043ea7572c8aa0e9dad2fe0076160eeca990b4d2beb27368d79",
      "inBlockchain": true,
      "inputs": [
        {
          "data": {
            "input": {
              "amount": 1,
              "k_image": "bdf71abd21025cceadd91d8533bcaec0fe456cee899fe39bce013073725e2f7c",
              "key_offsets": [
                1355806,
                1,
                1,
                360
              ]
            },
            "mixin": 4,
            "output": {
              "number": 0,
              "transactionHash": "f4439643273aa93647ec0a8af63b3db1d6bd66e51a83047a1df308c8772035a3"
            }
          },
          "type": "02"
        },
        {
          "data": {
            "input": {
              "amount": 8,
              "k_image": "ae6df98eedbfa48889fe781e9c5b66ce1719c875fdab68b7b4aa635c66043f62",
              "key_offsets": [
                314233,
                1,
                1,
                80
              ]
            },
            "mixin": 4,
            "output": {
              "number": 1,
              "transactionHash": "c08fd8f25964f4936294e6c9a3c565c38b810e7462dd978d95163df785552c0c"
            }
          },
          "type": "02"
        },
        {
          "data": {
            "input": {
              "amount": 6,
              "k_image": "b00d2c40a3cdbfb87641e815def94360197502f7275e7cdb8ad7431af358685f",
              "key_offsets": [
                310681,
                1,
                1,
                78
              ]
            },
            "mixin": 4,
            "output": {
              "number": 1,
              "transactionHash": "bfda8dd0a1c23497075c04b8216e400a43d2d2209b5d5de752d8996e4d488b89"
            }
          },
          "type": "02"
        }
      ],
      "mixin": 4,
      "outputs": [
        {
          "globalIndex": 1356202,
          "output": {
            "amount": 1,
            "target": {
              "data": {
                "key": "ea46542d480041ac18b1a16c48378696fe4b67d2660097ca77718bb90349a27f"
              },
              "type": "02"
            }
          }
        },
        {
          "globalIndex": 312357,
          "output": {
            "amount": 4,
            "target": {
              "data": {
                "key": "157fef139a64ec364cede83d7996736dad417d9a12b9f9dab2aa570dcf93921e"
              },
              "type": "02"
            }
          }
        }
      ],
      "paymentId": "0000000000000000000000000000000000000000000000000000000000000000",
      "signatures": [
        {
          "first": 0,
          "second": "74e0666b57d4984d08e4ed082aac294882c5ffb6b514a65cc68c2db20afe7f0c51af31d0c6e56e44797b4ed8184e636bb084f0422c07f1367ee348948b882b00"
        },
        {
          "first": 0,
          "second": "08b5d1df092b5452bd9a26b047500c6e95cfabb4d646f5ebd6ae0c3e6381f50eb01e05b7e59867faf7ed23ecd0256aab30ead1f587eb71deb5e66cddcd783102"
        },
        {
          "first": 0,
          "second": "ea3bb73cc0577653294f49e40180a8c9fc32313f0b5ad76856dfbb3a4aaa4a04ab4180eef02df7b38f9f44e56a35214223a811f91f8f22df368a060749254c0a"
        },
        {
          "first": 0,
          "second": "6062345b9ba63c12be5f7dba8e445aa51851204c1ca01bede549e30ea123130fb58e28be719f50007ede77c41ddbc85f0a8a662ece8290e49ea6eff7dc95c402"
        },
        {
          "first": 1,
          "second": "770c09620c49e2c1ab5b06f1b393b8a1dbb28c7b261ecf8e0a5f2eb909fca50f387cc1b39983e95052a0018ea1984057ab351dae2770e65916bc8f3828921c04"
        },
        {
          "first": 1,
          "second": "adbd389c858baa0ca4b338dede08d80cf8a0a2785423f9ffaec81f005b3d6f09f3efa8cadf6119c6a417cd26f7d98ac9affc48793aa7ab882b254f425e813407"
        },
        {
          "first": 1,
          "second": "ae7d887db8d35477317214238c01647808c3bfe054dcbee09a9f93a1cc72b6071b497f76309841749cc13db398846baed1eef5fc33a5543860b5ebfcf9afc409"
        },
        {
          "first": 1,
          "second": "c9f2dd2d20935face93b307143c3b0391e8bd62f1f8e1484518aa815aa7acd0e997effa8ee3074dbd785dce1c49890cb821bbdd1b8f413bb54e252d8f4bd1109"
        },
        {
          "first": 2,
          "second": "2cc23768b97fb0e28ad5d333e8b75c0d6bd157fe90fe8db277ae48daedc4550ec0b771252dedd261cdd2b93bb94adb423408b14b54eedb3afebd5ace4bccaa06"
        },
        {
          "first": 2,
          "second": "72132b72a242de68fc733d0ce0763f09542869ec009c40ccc303684917879b09943b08d7dd5989a13f05aad8d32cb560946897e79040d86c3060900342a08b00"
        },
        {
          "first": 2,
          "second": "73125ed11c14f51fcda18e43596f1d0e79fca2f0c14e99839c9f57ee3070520d66478855a0a60d5d2e74686e7da075ebd822031ad46aa6c047fd9943751f0802"
        },
        {
          "first": 2,
          "second": "626f45986689e7ad39380fb726b944dd572c0e3bea9bf6edb69e8c2b667fb00e28d529c73dc95353f6ee7f4d21492ef58eaf670058dd8eb02d31002a8164e907"
        }
      ],
      "signaturesSize": 3,
      "size": 1317,
      "timestamp": 1557555799,
      "totalInputsAmount": 15,
      "totalOutputsAmount": 5,
      "unlockTime": 0
    }
  ],
  "transactionsCumulativeSize": 2863
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.