Post
Topic
Re: [ANN] [POW] [MSR] Masari - private, untraceable, and fungible cryptocurrency
by
LoDoCrypto
on 05/06/2018, 21:38:30 UTC
http://
I had the problem that the v0.2.0.2 masari-wallet-cli would simply not recognize the wallet files from v0.1.4.0 as if there is no backward compatibility.
You input the wallet password and get some error: "Error: failed to load wallet: std::bad_alloc"

So I used --restore-deterministic-wallet and entered the seed from the old wallet, but... attention... it will then ask you for something like a seed encryption pasphrase. If you enter one, it will generate a completely new seed with a new address, i.e. a new wallter, not your old wallet. I don't remember if this seed encryption passphrase was there in previous versions, well at least I didn't use it. So I had to restore again, this time leaving that seed encryption passphrase blank and so it finally restored my old address, i.e. exactly my old wallet.

That's on Ubuntu 16.04 LTS. Not tried the Windows or MacOS version.


If you rename your keys file (i.e. wallet-name.keys), it will solve the problem. This is because you have to clear your wallet cache (which would be wallet-name, no extension). A rename of the keys file instead of deleting the cache is the safest option (in case you accidentally delete your private key)


Can you explain a bit more?  I have not been able to open my wallet since migrating to Badger.  The cli wallet program generates these error messages:

2018-06-05 07:21:51.044   460   WARN    wallet.wallet2   src/wallet/wallet2.cpp:3789   Failed to open portable binary, trying unportable
2018-06-05 07:21:51.053   460   WARN    wallet.wallet2   src/wallet/wallet2.cpp:3810   Failed to open portable binary, trying unportable
2018-06-05 07:21:51.060   460   ERROR   msgwriter   src/common/scoped_message_writer.h:102   Error: failed to load wallet: std::bad_alloc
2018-06-05 07:21:51.061   460   ERROR   wallet.simplewallet   src/simplewallet/simplewallet.cpp:3048   failed to open account
2018-06-05 07:21:51.061   460   ERROR   wallet.simplewallet   src/simplewallet/simplewallet.cpp:7292   Failed to initialize wallet

How do I solve this?  What do you mean you "have to clear your wallet cache"?  I have my old wallet, old wallet password, seed words, etc.  Just want to restore and see my balance again.



https://cdn.discordapp.com/attachments/452150945296416799/453673443431415838/unknown.png


Rename the file in red brackets.