Disapearing assets

+2 votes

I have created a private blockchain using Multichain, from the administrator node I used the command "getnewaddress" 3 times so I have 4 addesses in the administrator nodes wallet. I then gave each of these connect,send,receive permissions. I then used the "issue" command to give the administrator address 100000 of an asset.

[
    "16YftGNo5w8RPMJq383cVeu1V28JWBx2qcxA2R", (ADMINISTRATOR)
    "1CQzQZPwFpMW7eTxrN6f7he2zBE9BVtomrTDM6",
    "1CwcJaaDqFCh9CSt1LRkWwihnx6wMaEVTXuLvk",
    "1YfYQrf9DN6c57okdzVjnonz1P71j3RbgfHoWk"
]

On a seperate PC, I connect to the chain, get an address, give that address connect,send,receive from the administrator node and send 1 unit of the asset to this new address. This wallet then sends the 1 asset is has receive to any of the 3 new address created on the administrator node. I done this using 3 new PC's to send a total of 3 assets.

This appeared to work fine with the following output coming from the "getmultibalances" command on the administrator node. 1 address here is the admin, 1 address has 2 assets, 1 address has 1 asset and the final address has no assets so isn't shown.

{
    "16YftGNo5w8RPMJq383cVeu1V28JWBx2qcxA2R" : [
        {
            "name" : "asset1",
            "assetref" : "26-266-10557",
            "qty" : 99997.00000000
        }
    ],
    "1CQzQZPwFpMW7eTxrN6f7he2zBE9BVtomrTDM6" : [
        {
            "name" : "asset1",
            "assetref" : "26-266-10557",
            "qty" : 2.00000000
        }
    ],
    "1YfYQrf9DN6c57okdzVjnonz1P71j3RbgfHoWk" : [
        {
            "name" : "asset1",
            "assetref" : "26-266-10557",
            "qty" : 1.00000000
        }
    ],
    "total" : [
        {
            "name" : "asset1",
            "assetref" : "26-266-10557",
            "qty" : 100000.00000000
        }
    ]
}

On the 3 PC's, I then deleted the applicable Multichain folder for the chain and reconnected to get 3 new addresses and 3 new assets sent over. I repeated the sending process and expected the administrator address balance to be 6 less than the original amount. Not only did it not change, the 2 wallets that had a balance from the first set of transactions now have no balance. The wallet that had no assets in the first transaction now has 2 (correct) but all the other new wallets are empty.

{
    "1CwcJaaDqFCh9CSt1LRkWwihnx6wMaEVTXuLvk" : [
        {
            "name" : "asset1",
            "assetref" : "26-266-10557",
            "qty" : 2.00000000
        }
    ],
    "16YftGNo5w8RPMJq383cVeu1V28JWBx2qcxA2R" : [
        {
            "name" : "asset1",
            "assetref" : "26-266-10557",
            "qty" : 99997.00000000
        }
    ],
    "total" : [
        {
            "name" : "asset1",
            "assetref" : "26-266-10557",
            "qty" : 99999.00000000
        }
    ]
}

Do you know what the cause of this was and how I can get around it? Is it because I deleted the Multichain folders for the Blockchain and reconnected them or something?

 

Thanks!

asked Mar 12, 2017 by kjc14f
edited Mar 12, 2017 by kjc14f

1 Answer

+2 votes
 
Best answer

The most likely cause is that you sent from the first node without specifying which addresses the assets should be sent form. In this case the node can choose to send from an address it likes. You can check if this happened by reviewing the transactions performed for each address using listaddresstransactions.

answered Mar 12, 2017 by MultiChain
selected Mar 12, 2017 by kjc14f
Ah brilliant, I didn't even consider that! I checked the transactions as you suggested and it was like you said so I have switched to the send from command. Hopefully that will solve the problem! Thanks for the help.
...