CounterpartyXCP / counterparty-core

Counterparty Protocol Reference Implementation
http://counterparty.io
MIT License
287 stars 206 forks source link

fair minters unpacked data returns a list instead of dict #2567

Closed dime-squanderer closed 3 weeks ago

dime-squanderer commented 3 weeks ago

Steps To Reproduce

 ~/counterparty/Horizon-Explorer/ [main] curl 'https://api.counterparty.io:4000/v2/transactions/e810af30ce672722c076bc338a1e2bf8f0138ea8726751ed10729d1b5f744758/info?verbose=true' | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1355  100  1355    0     0   3074      0 --:--:-- --:--:-- --:--:--  3072
{
  "result": {
    "source": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
    "destination": null,
    "btc_amount": 0,
    "fee": 3759,
    "data": "5a4131313733323330383835353233333733353731367c7c307c317c327c3130307c307c307c307c307c307c307c307c307c307c307c",
    "decoded_tx": {
      "version": 2,
      "segwit": true,
      "coinbase": false,
      "vin": [
        {
          "hash": "ba7284a3e4bc1199c622b8720db08e1ac23cc380e83c8146284e6792834a79eb",
          "n": 1,
          "script_sig": "",
          "sequence": 4294967295,
          "coinbase": false
        }
      ],
      "vout": [
        {
          "value": 0,
          "script_pub_key": "6a3ecc40e79b7f82b574d44f60a1201e094048acf372ff13186bdeb234e557752396a45f21fd5914d83b273456d8757ae16f90cda984522ddb4f610f044bdbec"
        },
        {
          "value": 28401,
          "script_pub_key": "00147e7a1b5564077c35330bee85a62b689831c346c9"
        }
      ],
      "vtxinwit": [
        "3045022100dfe90fe0261803c50b89495102e2dbf9bcf31f4e07175457c69c8ef34faeda1f022057410aa6bbfab6388d03e77a912e54a8a67bcdb30d85a883dce9daeccc792ac301",
        "03b3e98eeb5a4f75f37c988d054f891f66eae0a8939fe5554ca308574d1fdedeec"
      ],
      "lock_time": 0,
      "tx_hash": "e810af30ce672722c076bc338a1e2bf8f0138ea8726751ed10729d1b5f744758",
      "tx_id": "e810af30ce672722c076bc338a1e2bf8f0138ea8726751ed10729d1b5f744758"
    },
    "unpacked_data": {
      "message_type": "fairminter",
      "message_type_id": 90,
      "message_data": [
        "A11732308855233735716",
        "",
        0,
        1,
        2,
        100,
        0,
        0,
        0,
        0,
        0,
        "0.00000000",
        false,
        false,
        false,
        false,
        ""
      ]
    },
    "btc_amount_normalized": "0.00000000"
  }
}
 ~/counterparty/Horizon-Explorer/ [main] 
ouziel-slama commented 3 weeks ago

fixed here https://github.com/CounterpartyXCP/counterparty-core/pull/2566