Balance Is Very Small. Where Are My Coins?

Discussion in 'Balances' started by Bosco, Nov 14, 2016.

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

    Bosco New Member

    Nov 14, 2016
    8
    1
    Scotland
    People are probably sick of this question. I've tried following guides to recover my coins, but I'm no further forward. I'd appreciate some help.

    I was stake mining for a while, but have had the computer off for quite some time now. When I open my wallet, I see only 26.xx decred with a "getbalance". I see the expected full amount 295.xx with a "getbalance "default" 0 all".

    My missed and revoked count did not match, so I followed info in the POS Mining FAQ's, with a rebroadcastmissed. I then restarted the daemon and wallet with --prunetickets --reuseaddresses.

    Gettickets 1 now shows me that I have no live tickets, which I think is what I should expect. However, getbalance still only showed 26 decred. I then tried to consolidate (rightly or wrongly?!) with --wallet consolidate 99999 default, but my getbalance still shows 26.

    If I run "getbalance "default" 0 all" I get the expected total of 295. Can anyone tell me what is going on?

    Getstakeinfo gives me:
    "poolsize": 42294,
    "difficulty": 38.24542168,
    "allmempooltix": 0,
    "ownmempooltix": 0,
    "immature": 0,
    "live": 0,
    "proportionlive": 0,
    "voted": 8,
    "totalsubsidy": 13.69183157,
    "missed": 9,
    "proportionmissed": 0.5294117647058824,
    "revoked": 9
    I'd appreciate any advise.
     
  2. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    Hi,
    Try

    getbalance "*" 0 all

    this will give proper balance, If not try resyncing decred.
     
  3. Bosco

    Bosco New Member

    Nov 14, 2016
    8
    1
    Scotland
    Thanks for the help Ayush. I get the same figure of 295 when I use "*" and "default". That is fine and is what I expect. I'm just curious why a plain getbalance command only shows 26. The getbalance command used to show the full balance, up until recently.

    It's not really important to me, if I am able to transfer all of my funds (295) to another address. I might try this. Would you foresee any problems with doing so?
     
  4. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    I think its because a lot of different addresses are created when we mine POS.
     
  5. karamble

    karamble Member
    Developer

    Feb 19, 2016
    57
    71
    When you issue the 'getbalance' command you are querying the 'default' account. BUT when you stake.mine, your balance moves over to the 'imported' account.

    You can use the 'listaccounts' command to see the available accounts.
     
  6. Bosco

    Bosco New Member

    Nov 14, 2016
    8
    1
    Scotland
    thanks for the info folks. after trying the stuff in my first post, then waiting 24 hours, I now appear to have my full balance back in the default account. a plain getbalance shows the full amount. sorted :)
     
  7. ay-p

    ay-p Full Member
    Developer

    Dec 7, 2015
    148
    106
    Male
    Great, glad to hear.
     
  8. Bosco

    Bosco New Member

    Nov 14, 2016
    8
    1
    Scotland
    Hey folks. I tried pos mining again, and again had a situation where my computer missed votes.

    I'm in a similar situation, where balances don't seem correct, my missed and revoked don't match, and I don't seem to have access to my funds (I think).

    getstakeinfo:

    "blockheight": 106178,
    "poolsize": 43800,
    "difficulty": 127.0116176,
    "allmempooltix": 0,
    "ownmempooltix": 0,
    "immature": 0,
    "live": 1,
    "proportionlive": 2.2831050228310503e-05,
    "voted": 8,
    "totalsubsidy": 13.69183157,
    "missed": 15,
    "proportionmissed": 0.6521739130434783,
    "revoked": 9,
    "expired": 0

    listaccounts:

    "default": 31.73348261,
    "imported": 0

    getbalance "*" 0 all:
    295.37411581


    As in the OP, I tried rebroadcastmissed and --prunetickets --reuseaddresses to no avail. Maybe I'm still staking, given the live: 1 in getstakeinfo? I'm not sure. Hope someone can help - I'd like to quit staking and consolidate my funds to one account. Ta.
     
  9. Shadowlance

    Shadowlance Full Member

    Jan 9, 2016
    220
    155
    Male
    First of all, what version are you running? If it's below 0.7.0, upgrade first. If it's below 0.5.0, you'll need to delete the block chain and download it again. %APPDATA%\Local\Dcrd on windows, I think.

    If that doesn't fix it, or you're already on 0.7.0, recreate your wallet from seed. If you do both of those, it should work.
     
  10. Bosco

    Bosco New Member

    Nov 14, 2016
    8
    1
    Scotland
    Thanks for trying to help, but I am already on 0.7.0 and have tried recreating the wallet too. I created the wallet from seed again anyway just in case, but as I suspected, this doesn't change the staking status of my coins. getstakeinfo has moved along a little, where I now show zero live tickets and missed has incremented by one:

    "blockheight": 107080,
    "poolsize": 43433,
    "difficulty": 34.37657635,
    "allmempooltix": 217,
    "ownmempooltix": 0,
    "immature": 0,
    "live": 0,
    "proportionlive": 0,
    "voted": 8,
    "totalsubsidy": 13.69183157,
    "missed": 16,
    "proportionmissed": 0.6666666666666666,
    "revoked": 9,
    "expired": 0

    A getbalance still gives me 31.73348261

    getbalance "*" 0 all gives me 295.37411581, which is the correct total. I just don't think they are all available to me to spend because they are stuck staking somehow. Is there a timeout when these staked coins will fall back into a state where I can spend them? I'm obviously missing something...
     
  11. Shadowlance

    Shadowlance Full Member

    Jan 9, 2016
    220
    155
    Male
    Helped in Slack, posting here for completeness:

    At this point it's the only thing (a corrupt chain) i can think would be causing it. Delete the chain and wallet. Download the chain again. Don't start the wallet until the chain is finished. Then start the wallet and see how you go.
     
  12. Bosco

    Bosco New Member

    Nov 14, 2016
    8
    1
    Scotland
    Thanks for the advice in slack Shadowlance.

    Unfortunately a fresh install and creating the wallet from seed did not help. I still have missed/revoked not matching, as in my previous post.

    I won't care so much, if in fact I am able to send all of my funds to a new address. Perhaps someone can help me do that. I've a feeling they are locked in PoS somehow though.
     
  13. Bosco

    Bosco New Member

    Nov 14, 2016
    8
    1
    Scotland
    Still the same problem folks.

    Brand new sync on a new VM, created wallet from seed with latest 0.8.2 version.

    getbalance:
    {
    "balances": [
    {
    "accountname": "default",
    "immaturecoinbaserewards": 0,
    "immaturestakegeneration": 0,
    "lockedbytickets": 263.6406332,
    "spendable": 31.73348261,
    "total": 295.37411581,
    "votingauthority": 0
    },
    {
    "accountname": "imported",
    "immaturecoinbaserewards": 0,
    "immaturestakegeneration": 0,
    "lockedbytickets": 0,
    "spendable": 0,
    "total": 0,
    "votingauthority": 0
    }
    ],
    "blockhash": "00000000000002ab07c20f818fbcac7ca604ee29a79a00618362a08528b34362"
    }

    getstakeinfo:
    {
    "blockheight": 114092,
    "poolsize": 41133,
    "difficulty": 62.38606523,
    "allmempooltix": 1,
    "ownmempooltix": 0,
    "immature": 0,
    "live": 0,
    "proportionlive": 0,
    "voted": 8,
    "totalsubsidy": 13.69183157,
    "missed": 16,
    "proportionmissed": 0.6666666666666666,
    "revoked": 9,
    "expired": 0
    }


    ^^ lockedbytickets appears to be the culprit. Help would be greatly appreciated. I haven't tried rebroadcastmissed, prunetickets or reuseaddresses since this last sync, but have done them several times on version 0.7.0. If I should try them again please let me know.
     
  14. MarSas

    MarSas New Member

    Feb 12, 2016
    54
    14
    Male
    I see no damage in running the rebroacastmissed command.
     
  15. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    Alright, so with the latest output, the fact it's showing the coins in lockedbytickets is good news. It means that the wallet does in fact see them.

    I'm assuming based on information earlier in the thread that the tickets have expired by now, so they can be revoked. In order to get them revoked, please do the following:

    1. Start the wallet process with the --enablevoting flag. It will not issue revocations without it.
    2. Unlock the wallet with dcrctl --wallet walletpassphrase "yourpassphrase" 0. The wallet must be unlocked for it to be able to create the revocations and sign them.
    3. Instruct dcrd to notify the wallet about missed tickets again so it will issue the revocations with dcrctl rebroadcastmissed.

    At that point, you should see the wallet log some details about the revocation transactions. Once those revocation transactions are mined into a block (which should be the next block), you will see the funds move to the immaturestakegeneration category in the dcrctl --wallet getbalance output. Finally, after 256 blocks, they will move to spendable category and thus be available to spend.

    NOTE: You could also just wait for a new block to show up for the final step since the wallet will automatically issue revocations given the first two conditions are true, but I suggested you manually issue the notification so you can more easily verify it issues the revocations.
     
    Bosco likes this.
  16. Bosco

    Bosco New Member

    Nov 14, 2016
    8
    1
    Scotland
    Awesome davecgh! My coins are now spendable again. I'm fairly sure I had not used the --enablevoting flag when launching the wallet process previously, which would explain why the revocations were not working.

    Thanks for your help folks
     
    davecgh likes this.

Share This Page