Isuficient Funds - When assets are available

+1 vote

When I try the command I get insufficient funds error. When in reality funds do exists. I even tried for a lower value changed to 1 from 7. It still gives me the same error.

Error:

D:\multichain>multichain-cli abc createrawsendfrom "1YNLLmqEZwpN3TTPDMCu4G8L2D1oNSvVKX39tk" "{\"1b6GeMSBsqinKrmcSdyX5XpFHZoKeETzaPnSkz\":{\"vote\":1}}" "[]" send
{"method":"createrawsendfrom","params":["1YNLLmqEZwpN3TTPDMCu4G8L2D1oNSvVKX39tk",{"1b6GeMSBsqinKrmcSdyX5XpFHZoKeETzaPnSkz":{"vote":1}},[],"send"],"id":1,"chain_name":"abc
"}

error code: -4
error message:
Insufficient funds

 

Fund Available:

D:\multichain>multichain-cli -datadir=multi2 -port=10255 -rpcport=10254 abc getmultibalances 1YNLLmqEZwpN3TTPDMCu4G8L2D1oNSvVKX39tk vote
{"method":"getmultibalances","params":["1YNLLmqEZwpN3TTPDMCu4G8L2D1oNSvVKX39tk","vote"],"id":1,"chain_name":"abc"}

{
    "1YNLLmqEZwpN3TTPDMCu4G8L2D1oNSvVKX39tk" : [
        {
            "name" : "vote",
            "assetref" : "58962-267-45400",
            "qty" : 7.00000000
        }
    ],
    "total" : [
        {
            "name" : "vote",
            "assetref" : "58962-267-45400",
            "qty" : 7.00000000
        }
    ]
}

 

related to an answer for: One-step raw transactions - Issue
asked Mar 17, 2017 by Rahul Ramakrishnan

1 Answer

+1 vote

Did you node ever get shut down improperly? There's a bug in alpha 28 whereby the recovery mechanism for this situation can incorrectly mark the availability of transaction outputs. The fix will be included in alpha 29, to be released shortly. In the meantime you can fix it by stopping the node using the stop API command, then relaunching multichaind with the additional -reindex=1 parameter.

answered Mar 17, 2017 by MultiChain
...