Moving Pos Wallet

Discussion in 'Solo Mining' started by sw1, Feb 18, 2016.

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

    sw1 Jr. Member

    Dec 31, 2015
    90
    39
    Male
    Sydney, Australia
    #1 sw1, Feb 18, 2016
    Last edited: Feb 22, 2016
    Folks,

    If I move a PoS wallet which has already bought tickets from one pc to another, do I need to move the wallet.db file over as well, or can I just import the seed?

    Not sure of the ticket hashes are stored in wallet.db or not?

    Any advice would be appreciated.

    Cheers,
    sw1
     
  2. rohit pawar

    rohit pawar Member
    Advocate (Reddit)

    Dec 26, 2015
    166
    87
    Male
    India
    JUST IMPORT THE SEED AND UR GOOD TO GO .
     
  3. sw1

    sw1 Jr. Member

    Dec 31, 2015
    90
    39
    Male
    Sydney, Australia
    Rohit, I just imported seed onto new pc and when i check for tickets it doesnt show anything.
    Are you sure you dont need to copy over the wallet.db file?
     
  4. rohit pawar

    rohit pawar Member
    Advocate (Reddit)

    Dec 26, 2015
    166
    87
    Male
    India
    Yeah . Im sure . I just setup cloud mining server on aws . Just imported wallet seed . But remember dont use 2 wallet at same time .
    sure
     
  5. sw1

    sw1 Jr. Member

    Dec 31, 2015
    90
    39
    Male
    Sydney, Australia
    ok,
    So when I run dcrctl --wallet gettickets 1 I can see all the hashes on my original wallet.
    When I run same command on new pc with imported seed it shows nothing at all.

    Is this expected behaviour?
     
  6. rohit pawar

    rohit pawar Member
    Advocate (Reddit)

    Dec 26, 2015
    166
    87
    Male
    India
    #6 rohit pawar, Feb 19, 2016
    Last edited: Feb 19, 2016
    Yeah even my fund was missing . Just delete all wallet files (old one ) try to reimport wallet again . And let me know status

    https://forum.decred.org/threads/dcr-missing-help-developers.657/
     
  7. sw1

    sw1 Jr. Member

    Dec 31, 2015
    90
    39
    Male
    Sydney, Australia
    yeah this was on a brand new debian install, I have not run both wallets at the same time.
    I'll try using wallet.db from other machine and let you know.
    I think the hashes must be part of wallet.db, restoring from seed might work as the hashes probably link back to wallet address anyway, but best to be safe than sorry.
     
    rohit pawar likes this.
  8. sw1

    sw1 Jr. Member

    Dec 31, 2015
    90
    39
    Male
    Sydney, Australia
    couldnt get my ftp server to connect to azure to copy over wallet.db, so hoping that restoring from seed works! Otherwise I just lost a whole bunch of decreds :(
     
  9. rohit pawar

    rohit pawar Member
    Advocate (Reddit)

    Dec 26, 2015
    166
    87
    Male
    India
    What are u getting when u use flag gettickets ?
     
  10. rohit pawar

    rohit pawar Member
    Advocate (Reddit)

    Dec 26, 2015
    166
    87
    Male
    India
    use
    getbalance "default" 0 all
    and see how much balance its showing
     
  11. sw1

    sw1 Jr. Member

    Dec 31, 2015
    90
    39
    Male
    Sydney, Australia
    dcrctl --wallet gettickets 1
    Thats the cmd for showing ticket hashes. I have none when restoring from seed.
    On the azure VM wallet, I get all my hashes and getbalance default 0 all shows my correct amount.
    Balance is showing only the remaining balance = 20 on restored seed (which was the balance to remain I set ), it is not showing the locked/spendable balance that was in the azure VM wallet.
    Thats why I think you need to copy over the wallet.db

    What does your gettickets 1 show when you restored from seed? Does it match your previous wallet version?
     
  12. rohit pawar

    rohit pawar Member
    Advocate (Reddit)

    Dec 26, 2015
    166
    87
    Male
    India
    it showed some hashes but no of tickets was different . i had around 300tks on my previous wallet and on aws it was showing almost none (showing only 10-20tks ) .Even my balance was showing some random amount , then as i mentioned above i restored seed by recreating wallet from start . and finally i got all balance and tkts back in my account .

    Sir , but u dont worry even its not showing tkts hashes u will receive your tkt reward at same wallet so keep your PoS wallet running . Voting starts in almost 2days
     
  13. rohit pawar

    rohit pawar Member
    Advocate (Reddit)

    Dec 26, 2015
    166
    87
    Male
    India
    still ill inform developer team to look through your problem
     
  14. sw1

    sw1 Jr. Member

    Dec 31, 2015
    90
    39
    Male
    Sydney, Australia
    Thanks Rohit

    I did import wallet seed on fresh vanilla VM, so there was no corruption etc. The wallet addresses are all the same etc.

    Im sure the ticket hashes will link back to wallet.... even if ticket hashes not showing @davecgh can you confirm if that is definitely the case?

    Im assuming the ticket hashes are stored in wallet.db hence why I cannot see them when recreating wallet with seed on new machine.
     
  15. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    Is your wallet fully synced on new machine? If it is not then it might not see some tx you made for buying tickets. try --gettickets 0 and see if all your tickets are shown. also let it sync and them try and see if all tickets are shown. I am just guessing here so might be something else.
     
  16. sw1

    sw1 Jr. Member

    Dec 31, 2015
    90
    39
    Male
    Sydney, Australia
    hey @sambiohazard, yes wallet fully synched. Still same issue. I'll have another try using old wallet.db today via scp.
     
  17. sw1

    sw1 Jr. Member

    Dec 31, 2015
    90
    39
    Male
    Sydney, Australia
    OK, managed to finally import the wallet.db and everything is back to normal.

    If moving PoS wallet before ticket lottery and want to make sure you see all your coins.... copy over wallet.db file to new pc/vm etc :)
     
    Finksy, sambiohazard and rohit pawar like this.
  18. Finksy

    Finksy New Member
    Translator (Français)

    Feb 9, 2016
    26
    12
    Thank you, I'm going through the same issue after moving a wallet that had previously purchased some tickets (computer died the day leading up to voting blocks, and didn't transfer wallet.db). Tickets are now voting successfully, but the issue is the voting reward for tickets purchased prior is not showing up (or being used to purchase new tickets with --enablestakemining). I haven't cross-referenced, but I imagine those tickets are also missing in the --gettickets list (new tickets were also purchased by same wallet on new computer). Will there be a way to rebuild from seed and recover all funds and tickets in addresses already used by that seed in the near future? I know the funds are there, I'm not entirely worried about the lost POS revenue from not being able to access the voted tickets, but would like to know the goal for long-term solution.

    If I move the wallet.db file now, I will be in the same situation for tickets purchased on new PC...
     
  19. rohit pawar

    rohit pawar Member
    Advocate (Reddit)

    Dec 26, 2015
    166
    87
    Male
    India
    Dont worry reward. Reward will be unlocked after 256 blocks .
    U can still check it with
    Code:
    dcrctl -u user -P pass --wallet getbalance "default" 0 all
    this will give u total balance locked and spendable .
     
    Finksy likes this.
  20. Finksy

    Finksy New Member
    Translator (Français)

    Feb 9, 2016
    26
    12
    Thank you as always. Will there be a method to fully recover wallet from seed, including all previously used addresses in the future?
     

Share This Page