Where Are My Coins Locked

Discussion in 'Technical Support' started by zeldalink, Jan 21, 2017.

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

    zeldalink New Member

    Jan 21, 2017
    15
    0
    the Netherlands
    I have locked coins but I can't seem to figure out where they are locked

    getstakeinfo
    {
    "blockheight": 100488,
    "poolsize": 42387,
    "difficulty": 25.03752248,
    "allmempooltix": 2026,
    "ownmempooltix": 0,
    "immature": 0,
    "live": 0,
    "proportionlive": 0,
    "voted": x,
    "totalsubsidy": x
    "missed": x,
    "proportionmissed": x,
    "revoked": x,
    "expired": x
    }

    this is the output of the gestateinfo. I don't seem to have any open tickets. I have already recreated my wallet from seed even recreated the whole database but i can't find where the coins are locked in.
     
  2. Nimrod

    Nimrod New Member

    Mar 4, 2016
    102
    18
    Male
    Try:

    For all coins:
    dcrctl -u username -P password --wallet getbalance default 0 all

    For locked coins:
    dcrctl -u username -P password --wallet getbalance default 0 locked

    For spendable coins:
    dcrctl -u username -P password --wallet getbalance default 0 spendable

    Also good to check if stakemining (true) and wallet is unlocked (true) for voting!

    dcrctl -u username -P password --wallet walletinfo

    {
    "daemonconnected": true,
    "unlocked": true,
    "txfee": 0.01,
    "ticketfee": 0.01,
    "ticketmaxprice": 2,
    "balancetomaintain": 0.1,
    "stakemining": true
    }
     
  3. zeldalink

    zeldalink New Member

    Jan 21, 2017
    15
    0
    the Netherlands
    I know how to see if they are locked and a lot of coins are locked. But I don't know why because I have no tickets as you can see. Is there an other place where my coins can be locked at?

    and here is the output

    "daemonconnected": true,
    "unlocked": false,
    "txfee": 0.01,
    "ticketfee": 0.01,
    "ticketmaxprice": 0,
    "balancetomaintain": 0,
    "stakemining": false
     
  4. Nimrod

    Nimrod New Member

    Mar 4, 2016
    102
    18
    Male
    Good question... I only do solo stakemining, so not using a stakepool. So everything here might not apply to you.

    I start my wallet with the following. The important part is --enablestakeming which should give "stakemining: true"

    dcrwallet -u username -P password --walletpass walletpassword --enablestakemining --balancetomaintain=0.1 --ticketmaxprice=2 --ticketbuyfreq=1 --reuseaddresses

    After the wallet has started up properly I unlock the wallet. You MUST have the wallet unlocked for the voting to take place (solo mining).
    Not unlocked = VERY BAD. You will not receive any reward for stakemining but the coins remain locked. Regardless you amount of coins you have should show up with the "getbalance" series posted earlier.

    Unlock wallet with:
    dcrctl -u username -P password --wallet walletpassphrase walletpassword 0

    The only thing I can think of since you already recreated from seed is did you delete the old database directory before recreating the wallet?
    Redownloading the database takes an hour or so??? Pretty quick anyway.

    Hope this helps! Sorry got to run, back tomorrow.
     
  5. zeldalink

    zeldalink New Member

    Jan 21, 2017
    15
    0
    the Netherlands
    I have also never done stake mining in pool only solo. And yes it is created from nothing it was on a whole new pc I installed it. So I have no idea why I have the coins locked because I don't have any tickets as you can see in my first post.
     
  6. zeldalink

    zeldalink New Member

    Jan 21, 2017
    15
    0
    the Netherlands
    So is there anyone that has any idea how I can see why my coins are locked and how to get them back?
     
  7. dhill

    dhill Moderator
    Developer Organizer

    Mar 14, 2016
    11
    21
    Male
  8. jrick

    jrick Member
    Developer

    Jan 4, 2016
    88
    81
    Male
    There is a maturity period for all stake-generated coins (created by both votes and revocations). Your coins might not be spendable due to that.

    The balance changes implemented by dhill should report these coins as a different balance than locked coins so that should help remove some of the confusion.
     

Share This Page