Different values for qty depending on command (listassets vs listwallettransactions)

+2 votes

Hello Multichain,

I am seeing different values of qty for a given issuance event depending on which API method is used to retrieve the data. Namely listassets with verbose turned on which shows qty as raw * units, and listwallettransactions which shows raw and quantity to be the same. 

Is this expected behaviour?

See example results from both with different values highlighted.

multichain-cli chain1 listwallettransactions

[   {
        "balance" : {
            "amount" : 0.00000000,
            "assets" : [
            ]
        },
        "myaddresses" : [
            "1MuehZgn2wt3mnjuoD57kst3qB3bSQHXrGrU4c"
        ],
        "addresses" : [
            "1YXEDBc8M6PkX5saU1TNVa5655u6cBd3SdVsRf"
        ],
        "permissions" : [
        ],
        "issue" : {
            "name" : "asset1",
            "assetref" : "6615-266-48718",
            "details" : {
                "reference" : "amount-check-1"
            },
            "qty" : 5000.00000000,
            "raw" : 5000,

            "addresses" : [
                "1YXEDBc8M6PkX5saU1TNVa5655u6cBd3SdVsRf"
            ]
        },
        "data" : [
            "53504b637265666572656e6365000e616d6f756e742d636865636b2d31"
        ],
        "confirmations" : 763,
        "blockhash" : "0000107f9dc127804294037b1d5be62940fc5a1192a5e78df617a8285858c27c",
        "blockindex" : 1,
        "blocktime" : 1458729438,
        "txid" : "4ebe4b45cbb0ae8d026619965682298826c20c28fe820d1606914d1d4e37348f",
        "time" : 1458729425,
        "timereceived" : 1458729425
    }
]

multichain-cli chain1 listassets asset1 1

[
    {
        "name" : "asset1",
        "issuetxid" : "4ebe4b45cbb0ae8d026619965682298826c20c28fe820d1606914d1d4e37348f",
        "assetref" : "6615-266-48718",
        "multiple" : 100,
        "units" : 0.01000000,
        "open" : true,
        "details" : {
            "reference" : "amount-check-1"
        },
        "issueqty" : 50.00000000,
        "issueraw" : 5000,

        "issues" : [
            {
                "txid" : "4ebe4b45cbb0ae8d026619965682298826c20c28fe820d1606914d1d4e37348f",
                "qty" : 50.00000000,
                "raw" : 5000,
                "details" : {
                    "reference" : "amount-check-1"
                },
                "issuers" : [
                    "1MuehZgn2wt3mnjuoD57kst3qB3bSQHXrGrU4c"
                ]
            }
        ]
    }
]

 

asked Mar 23, 2016 by knowncolor
Hi - just confirming you snipped the output of listassets for the purpose of this question, and it also showed the original issue that created the asset?
Correct! Sorry if it made things more confusing.

2 Answers

+1 vote
Thanks - this looks like a straightforward bug and we will fix it in the next alpha.
answered Mar 23, 2016 by MultiChain
+1 vote
This has been fixed in alpha 19, just released. Thanks again for reporting it.
answered Mar 31, 2016 by MultiChain
...