Question About Coding

Discussion in 'Tickets' started by Vanputlei, Apr 24, 2016.

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

    Vanputlei Jr. Member
    Translator (Nederlands)

    Jan 12, 2016
    69
    36
    Male
    Belgium
    Hi all,

    I wasn't able anymore to purchase tickets due to double spend, so I recreated my wallet.
    Before my balance was 214,... Decred
    Now my balance is 198,... (dcrctl --wallet getbalance)
    In total I purchased 16 tickets.
    So far so good, difference can be the purchase price of 1 tick.
    But, if I put in:

    dcrctl --wallet getbalance "default" 0 all it gives 198,... as a balance

    on the other hand when I put in the command dcrctl --wallet getstakeinfo it gives:

    "poolsize": 42183,
    "difficulty": 22.26700009,
    "allmempooltix": 0,
    "ownmempooltix": 0,
    "immature": 0,
    "live": 6,
    "proportionlive": 0.00014223739421093806,
    "voted": 10,
    "totalsubsidy": 18.34905064,
    "missed": 0,
    "proportionmissed": 0,
    "revoked": 0

    So my question is where to seek for the error, in my total balance (price of 6 tickets not included) or in my stake info (6 tickets aren't alive anymore)

    Because at the airdrop we received about 280 Decred, have given away about 5, average ticket purchase price was around 15, so did I lose some....

    Can someone give me an explanation, am I doing something wrong?
    Many Thanks in advance.
     
  2. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    Try:
    Code:
    dcrctl --wallet getbalance default 0 fullscan
    
     
    Vanputlei likes this.
  3. Vanputlei

    Vanputlei Jr. Member
    Translator (Nederlands)

    Jan 12, 2016
    69
    36
    Male
    Belgium
    Thx, but bad news....
    After entering this command and a lot of calculation the missing amount is exaxctly the purchase amount of those 6 tickets.
    Anyone knows how to retrieve it?
     
  4. Vanputlei

    Vanputlei Jr. Member
    Translator (Nederlands)

    Jan 12, 2016
    69
    36
    Male
    Belgium
    just bought some extra tickets and after running the fullscan command its giving me the balance minus all purchased ticket prices....
     
  5. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    Does the transaction show up in the block explorer?
    Code:
    https://mainnet.decred.org/
    
     
  6. Vanputlei

    Vanputlei Jr. Member
    Translator (Nederlands)

    Jan 12, 2016
    69
    36
    Male
    Belgium
    yep they all do
     
  7. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    @Vanputlei, What version are you running?

    What do these show you?
    Code:
    --wallet getbalance default 1 locked
    --wallet getbalance default 1 spendable
    
     
  8. Vanputlei

    Vanputlei Jr. Member
    Translator (Nederlands)

    Jan 12, 2016
    69
    36
    Male
    Belgium
    Latest version

    locked gives "0"
    however stakeinfo gives 6 live and 3 immature

    "poolsize": 42040,
    "difficulty": 22.26700009,
    "allmempooltix": 0,
    "ownmempooltix": 0,
    "immature": 3,
    "live": 6,
    "proportionlive": 0.000142721217887726,
    "voted": 10,
    "totalsubsidy": 18.34905064,
    "missed": 0,
    "proportionmissed": 0,
    "revoked": 0

    the purchase price of those 3 immature and those 6 live is missing in my total balance (fullscan)
    those 3 are purchased about 1-2 hours ago.
     
  9. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    Locked should not be 0 for you since you have live tickets. You may have to re-create from seed because your counts are off.

    Your funds are probably not missing, but just getting miscalculated. This happened to me once when I enabled my stake mining before the entire block chain was downloaded.
     
  10. Vanputlei

    Vanputlei Jr. Member
    Translator (Nederlands)

    Jan 12, 2016
    69
    36
    Male
    Belgium
    Latest version

    spendable balance is 229

    summary:
    airdrop 282
    transaction to community member sambiohazard, I guess it was 3

    so it makes 279
    bought 19 tickets in total / 10 voted / 6 alive (total purchase price 97,...) / 3 immature (22.267 per ticket) / "totalsubsidy": 18.34905064

    so it makes 279+18=297
    297 - 97-66= 134

    transfer from bittrex to wallet

    "account": "default",
    "address": "DsexXbVyQUiXM3maM8NwTMDEH9JsEFFiGsR",
    "amount": 5

    "account": "default",
    "address": "DsXPckFX6B9czY6NTVCciRqVMk3vbMPmkq3",
    "amount": 92.833266,

    134+ 97= 231 (which is more or less my spendable balance (-some fee's here/there)
     
  11. Vanputlei

    Vanputlei Jr. Member
    Translator (Nederlands)

    Jan 12, 2016
    69
    36
    Male
    Belgium
    So it means I miss more or less 163 decred, and all this happened after recreating my wallet.....
     
  12. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    Tivra likes this.
  13. root

    root Member

    Feb 3, 2016
    381
    76

Share This Page