preparelockunspent fails

0 votes
Hi There,

The command prepareluckunspent is currently failing constantly giving me the error below.

multichain-cli chainname preparelockunspent '{"EUR": 1}'

{"method":"preparelockunspent","params":[{"EUR":1}],"id":1,"chain_name":"chainname"}

error: {"code":-4,"message":"Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."}

Im not sure how to go about debugging this, where can I start?
asked Nov 5, 2015 by anonymous
Thanks for this. Did you share the wallet.dat file with any other nodes, or export then import the private keys? Also please let me know if you're using a native currency on your blockchain.
Hi there, no, I haven't shared the wallet.dat, nor have I done any export / imports.

We have issued a native currency on the blockchain, EUR.

2 Answers

0 votes
This does sound like a bug in the alpha. Would you be willing to zip up the blockchain directory and send it to us by email? We'll then take a look here and try to work out what's going on. I'll send you a private message with the address. Thanks!
answered Nov 5, 2015 by MultiChain
0 votes
Thanks. We've looked into the file you sent and have found the problem, which was caused by a bug in alpha 9. It should be fixed in alpha 10 - please let us know if you need an advanced copy, or if you've managed to continue working in the meantime.
answered Nov 7, 2015 by MultiChain
edited Nov 7, 2015 by MultiChain
Good to hear, in the meanwhile I reconnected the node and no problems thus far, we will keep working on alpha 9 for now.
FYI alpha 10 has been released which fixed this problem. If you run multichaind for the first time with the parameter -reindex=1 it should clear up your wallet inconsistency.
...