How To Rebuild / Resync Wallet Successfully

Discussion in 'Technical Support' started by norikai, Mar 19, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. norikai

    norikai New Member

    Dec 24, 2015
    40
    12
    #1 norikai, Mar 19, 2016
    Last edited: Mar 19, 2016
    Hi Everyone,

    This is for those who have rebuild wallet, balance, double spend issues.

    I've been having issues with my balance and have been getting the double spend error when trying to purchase POS tickets since 0.0.7. I attempted to resync to my seed several times and kept getting an incorrect balance. I updated to 0.0.8 when it was released and did the same, with the same results.

    I think I finally know the answer to why so many people are having this same problem.

    Steps (for Windows users)

    1. Navigate to Users/User/AppData/Local
    2. Rename existing "Dcrd" folder to "Dcrd old", and "Dcrwallet" to 'Dcrwallet old". If things go wrong, you can revert and have your existing build intact.
    3. Open your cmd window and run: "dcrd --rpcuser [yourrpcusername] --rpcpass [yourrpcpassword] Allow the daemon to completely sync to the current block before going to the next step (I believe creating the wallet while the dcrd window was not completely synced is the cause of everyone's problems)
    4. Open another cmd window and run: "dcrwallet --create" Then, enter your private pass, public pass, and seed....that should get you going and you probably are familiar with the rest.

    Optional

    I'm not sure if this helped or not, but I did it anyway:

    After you have allowed dcrd to completely sync and catch up, and have restored your wallet, you can run your wallet with this command:

    dcrwallet --username [walletuser] --password [walletpass] --dcrdusername=[rpcuser] --dcrdpassword=[rpcpass] --walletpass [publicpass] -d debug

    This is reference @ceejep post here: https://forum.decred.org/threads/mainnet-stake-pool-is-live.1256/page-7#post-14794

    After you've completed these steps, your wallet balance should be accurate and you should be able to buy stake tickets again. Remember, the critical step seems to be allowing the daemon to completely sync before restoring your wallet.

    Also, I have not had to use the consolidate command. So those of you having issues, may want to try this first to save on some transaction fees.

    Edit: @davecgh @_ingsoc Just FYI since you guys are active here.

    Edit 2: I've done this a second time on my cold wallet PC, and can confirm that everything is completely synced up - balance & stake info.

    Edit 3: Some of your balances may have been displaying incorrectly before if you were affected by the bug. If feasible, please calculate what you've made and spent manually and compare to the balances. I added up what I received from airdrop + POW + POS and the balance I can see after this procedure was more accurate than before. The incorrect display of balances may be the cause of some confusion and frustration.
     
    exp, develCuy, techbytes and 4 others like this.
  2. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    I've done this with no result in fixing my total balance display.
     
  3. norikai

    norikai New Member

    Dec 24, 2015
    40
    12
    Really? It worked for me twice. I double checked my balance by manually looking at what I've made by airdrop + POW + POS and my balance looks accurate after this. I believe my balance was displaying a higher amount before because of the bug, causing me to think it was still wrong (although the sync error I had before was really wrong).
     
  4. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    Yes, I replied you in another thread. Maybe in my case I was expecting --wallet getbalance "default" 0 all to works as --wallet getbalance "*" 0 "all" . But I lost track of my balance and I find very optimistic what --wallet getbalance "*" 0 "all" returns as balance. I replied to @ceejep there and I ask for more info about it.

    Thanks for your solution post anyway, I am sure it will help others.
     
    norikai likes this.
  5. Noah

    Noah Member
    Advocate (Twitter)

    Feb 1, 2016
    154
    97
    Male
    Amsterdam
    norikai likes this.
  6. techbytes

    techbytes New Member

    Jan 17, 2016
    13
    2
    Male
    This works for me as well. Thanks.

    -tb-
     
  7. guilhermydg.a

    guilhermydg.a New Member

    Mar 20, 2016
    3
    1
    Male
    Did not work for me, my balance is still incomplete.
     
  8. techbytes

    techbytes New Member

    Jan 17, 2016
    13
    2
    Male
    Did you import your redeem script?

    -tb-
     
  9. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    I suggest u remove the debugging command part. I saw two people who got confused because of it.
     
  10. norikai

    norikai New Member

    Dec 24, 2015
    40
    12
    No. It works, and is helpful. I'm not going to remove it because of the people who are unable to follow directions, which there are many of.
     
    Ayush likes this.
  11. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    It was just a suggestion :)
     
  12. lmaonade80

    lmaonade80 New Member

    Apr 30, 2016
    17
    1
    Male
    USA
    Hello, this may be the cause of my problem, however I do not have my passphrase. I am able to unlock the wallet with a password that I created, which I thought saved over the passphrase, but that does not look to be the case. The balance the wallet shows me is incorrect. Am i SOL?
     
  13. travanx

    travanx New Member

    Mar 7, 2016
    17
    0
    Male
    Thank you for writing this. After a day of messing around figured out how to transfer my CLI wallet to paymetheus, after only having the CLI seed.
     
  14. UnLearnYourself

    UnLearnYourself New Member

    Mar 29, 2018
    3
    0
    Male
    United States
    I have a problem where my wallet reads 0 but I don't believe I've ever successfully sent DCR out of my wallet.

    Your instructions and your link are WAY over my head. Literally none of it makes sense to me.

    Might one of you be so kind as to hold my hand and step me through how to find my DCR? This is driving me nuts right now...
     

Share This Page