Updating Pos Commands From 0.6.1

Discussion in 'Proof-of-stake Mining' started by in-cred-u-lous, Jul 10, 2017.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. in-cred-u-lous

    in-cred-u-lous New Member

    Apr 25, 2016
    17
    4
    Oslo
    I have been PoS'ing directly (not with a pool) since 0.6.1, with the following command:

    ./dcrwallet --enablestakemining --balancetomaintain=10 --ticketfee=0.05 --ticketmaxprice=50

    This has run uninterrupted, well, since 0.6.1...

    Until yesterday, that is. Then, staking and a lot more I think just stopped. Not sure why. I have not followed developments closely, but heard a whiff or two about a vote, a hard-fork, and what else.

    Love decred, but am upset to see staking isn't working!

    So, I downloaded and started the current version of dcrd. Wallet commands have changed I see, and I now open my wallet with:

    ./dcrwallet ----enableticketbuyer --ticketbuyer.maxfee=0.05 --ticketbuyer.maxpriceabsolute=50

    (50 and 0.05 arent the actual numbers I use)

    Still, it ain't staking. I get messages about Revoked tickets however, e.g:

    2017-07-10 19:26:48.113 [INF] WLLT: Revoked missed ticket 359d08ef7177208c4a225abf429040236b6541e0e90da894195e3e20880e6f9e (tx hash: 20be228aa5fed3b4fa6a06a51│verifymessage "address" "signature" "message"
    8c90e0e670ee006b8bec9e0c583aa4b038a6628)

    This after staking for another 12 hours or so, not right after restarting wallet after the hiatus.

    What am I doing wrong?
     
  2. Nimrod

    Nimrod New Member

    Mar 4, 2016
    102
    18
    Male
    0.6.1 is quite old. I'm not surprised it worked solidly up to the hardfork but there have been quite a few changes.

    I think what you are missing is --enablevoting in your dcrwallet startup! Also remember to unlock the wallet.

    I would recommend doing a fresh install. (Please: Check and Confirm you have your wallet seed before you proceed!!!)
    There have been changes in various databases since v0.6 so this is just common sense.

    Rename the decred data folders, do not delete to be safe! (drcd, dcrctrl, dcrwallet --> old_dcrd, old_dcrctrl, old_dcrwallet).

    Install v1.0.5.
    Resyncing of the blockchain can take a while, hours I think, haven't done this since v0.8 or so.
    Recreate wallet from seed

    What I'm using (windows):

    1. Start decred
    dcrd -u username -P password

    2. Start dcrwallet (with POS)
    Works, not sure if everything is really needed... probably some legacy stuff in here.
    Buying tickets manually!

    dcrwallet -u username -P password --walletpass xxxxxxx --enablevoting --ticketbuyer.balancetomaintainabsolute=0.1 --ticketbuyer.maxpriceabsolute=2 --ticketbuyer.maxperblock=1 --reuseaddresses

    3. Unlock wallet without a timelimit (or POS will not work!)
    dcrctl -u username -P password --wallet walletpassphrase xxxxxxxx 0

    Good luck!
     
  3. in-cred-u-lous

    in-cred-u-lous New Member

    Apr 25, 2016
    17
    4
    Oslo
    Thanks @Nimrod,
    enablevoting did it. Staking, and voting, now working as before. Sent a little tip :)
     
  4. Nimrod

    Nimrod New Member

    Mar 4, 2016
    102
    18
    Male
    Good to hear you got it working again! Thanks for tip!
     

Share This Page