Dd-4: V0.0.8 (03/18/16)

Discussion in 'Development Dispatches' started by tacotime, Mar 18, 2016.

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

    tacotime Hero Member

    Dec 7, 2015
    410
    1,133
    CarpeDecred and Tivra like this.
  2. raphaelsoares

    raphaelsoares New Member

    Jan 30, 2016
    38
    11
    Male
    Not, since the 0.0.1 version just change the files (dcrd, dcrwallet, dcrctl). I never restored the seed.
     
  3. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Try a lower fee, e.g. 'dcrctl --wallet settxfee 0.01'
     
  4. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Ayush likes this.
  5. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
  6. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    What issues with balances still remain?
     
  7. norikai

    norikai New Member

    Dec 24, 2015
    40
    12
    Confirm you allowed the RPC client to fully sync first? Let it catch up to the current block before you create wallet.
     
  8. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    #28 zero, Mar 19, 2016
    Last edited: Mar 19, 2016
    I've found out since at least v0.0.6 that there is a problem with this. So yes in all my tries I first let RPC client to fully synced first and then start everything with dcrwallet. In windows in stucks about 15 blocks to the end until a new found block appears and then it get to latest / correct height but I re-run it at that point and wait until another block is found so as to be completely sure and I also get the same results.
     
  9. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    #29 zero, Mar 19, 2016
    Last edited: Mar 19, 2016
    @ceejep

    --wallet getbalance "default" 0 all -> keep not to return total balance.

    Also I think:

    dcrctl --wallet getbalance imported 0 all

    returns the total amount I stake on pool (live tickets, immature but also voted and missed/revoked). I think what gives is very optimistic for balance. It's more than 20 DCR I can calculate adding totalsubsidy and some DCR from PoW pools to the latest correct amount I can remember.

    Anyway I start losing track of my total balance with this display problem. I just hope when all tickets bought before re-creating my dcrwallet get voted, missed or expired I'll get my wallet fixed, I just hope for a possible fix sooner than that cause it will take some months maybe. I won't re-create my wallet again or re-download blockchain for updating except if I'll instructed from release notes to or for testing a real possible fix.
     
  10. raphaelsoares

    raphaelsoares New Member

    Jan 30, 2016
    38
    11
    Male
    sambiohazard likes this.
  11. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    This is the correct result. The only command that will return the full balance of the entire wallet is not specifying an account (getbalance) or using the account "*". Your default account (account #0) is created on start up and is used generally. Imported refers to all funds stored in imported private keys or scripts. Displaying the full wallet balance without using account '*' was a bug that existed pre-0.0.8.
     
  12. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    So is there a way for me to calculate my real total balance at this point?
     
  13. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Yes

    Code:
    dcrctl --wallet getbalance '*' 0 'all'
     
    zero likes this.
  14. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    #34 zero, Mar 19, 2016
    Last edited: Mar 19, 2016
    OK in windows cmd:

    dcrctl --wallet getbalance * 0 all

    or

    dcrctl --wallet getbalance "*" 0 "all"

    works. It's a sum up of getbalance "default" 0 all + getbalance imported 0 all

    So this give me the total ammount of everything?: If hypothetically every ticket will expires and matures + every other immature transactions matures + my current spendable balance?

    Is the above includes live + immature ticket values with vote rewards included so that's why it's more than I can calculate I have?
     
  15. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Yes. It's all the outputs you own either jointly (multisig) or yourself.

    It does not include future theoretical rewards, as those are difficult to accurately predict. It does include rewards you have already received. What you're seeing is coins that you own.
     
    zero likes this.
  16. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    #36 zero, Mar 19, 2016
    Last edited: Mar 19, 2016
    So if I stop my wallet now and leave it inactive (including not sending any amounts to its addresses) the return I get now with:

    dcrctl --wallet getbalance * 0 all

    will become the spendable one (dcrctl --wallet getbalance) when all tickets voted/missed/revoked/expired? Or should I subtract anything from it?

    I have to miscalculated something. I should be happy though that I have more than I expected. :)

    So instead of using --wallet getbalance "default" 0 all I should use dcrctl --wallet getbalance * 0 all from now on.

    Sorry for bothering but the only commands I used for balance before my "problem" appeared was:

    dcrctl --wallet getbalance

    dcrctl --wallet getbalance "default" 0 all

    dcrctl --wallet getbalance "default" 0 spendable (= --wallet getbalance)

    dcrctl --wallet getbalance "default" 0 locked (= --wallet getbalance "default" 0 - minus --wallet getbalance)

    And they were working fine. So now there is no reason for them. I better use:

    dcrctl
    --wallet getbalance


    dcrctl --wallet getbalance * 0 all

    dcrctl --wallet getbalance * 0 spendable

    dcrctl --wallet getbalance * 0 locked

    @ceejep What this message from dcrwallet means?:

    "Cannot handle chain server voting notification WinningTickets: Error encountered attempting to create vote using ticket xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: failed to generate correct signature script for ssgen or ssrtx: stack underflow"

    Is my wallet messed up again? I checked getstakeinfo and one of my tickets voted anyway.
     
  17. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    Well, I was successfully able to get rid of my "dust" problem (I think), after 4 attempts with v800:

    This is what happened:
    • Recreate my wallet from seed.
    • Wait for the dcrd to completely load the blocks. This is very important!!!
    • First I started my wallet and found I had 72 spendable, but didn't enable staking yet.
    • I ran the consolidate command
    • Then I enabled staking
    • My spendable showed now as 0
    • Then my wallet started immediately purchasing tickets.
     
    goofoff and sambiohazard like this.
  18. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
  19. tacotime

    tacotime Hero Member

    Dec 7, 2015
    410
    1,133
    Documentation is currently being worked on by @David, @Shadowlance, and @zkott, as per RFP-4. The idea is to focus on content and transfer to a dedicated system that could live at a place like https://docs.decred.org. If you're curious about it, you can look at a system like MkDocs, which is what I'll be working on with the content they create. It's quite a nice and modern system, as it produces dead easy static pages in markdown. This can in turn be hosted anywhere or be portable (and responsive) - it's about time we get away from the difficulties imposed on us by the wiki's markup for technical writing.
     
    Ayush and David like this.
  20. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    tacotime likes this.

Share This Page