Testnet Only Guide: How I Got My Daemon, Wallet, And Miner Running & Also Started Solo Stake Mining

Discussion in 'Proof-of-work Mining' started by sambiohazard, Jan 28, 2016.

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

    Metallicelmo New Member

    Jan 30, 2016
    76
    10
    Male
    Thanks, I did and they solved my problem. Turns out everything I did was right exept I was using a different cgminer version that does not work with decred testnet. I'm now running cgminer found here: https://github.com/decred/cgminer/releases/tag/v0.0
    only downside is that this cgminer is 32bit in stead of 64 and gives me half the performance. cgminer 32bit about 900 MH/s and cgminer 64bit 1.6 GH/s in a blake256 benchmark. Hope someone can fix this in the future
     
    sambiohazard likes this.
  2. norikai

    norikai New Member

    Dec 24, 2015
    40
    12
    Used this guide to get started on testnet. Thanks! Was very helpful.

    Although a cumbersome process for now. It got the job done. Hopefully a simpler GUI or easier method to come soon, as it may be very difficult for people with absolutely no experience with command line.
     
    sambiohazard likes this.
  3. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    2 unofficial GUI wallets are already out. Check out the Technical Development Section of the forum.
     
  4. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    What is the notls flag? and where did you find it?
     
  5. Metallicelmo

    Metallicelmo New Member

    Jan 30, 2016
    76
    10
    Male
    I believe TLS is a security method like SSL that does not seem to work on decred Windows (yet) if you forget the notls or noclienttls and noservertls then the software will not try connecting without it and connection might fail. without there options it might start complaining about a certificate that can't be found
     
  6. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    Windows people, do not forget the --notls for the dcrd or the --noclienttls for the dcrwallet:

    dcrd.exe --notls -u YourUserName -P YourPassword --miningaddr=YourNewDecredAddress
    dcrwallet --dcrdusername=YourUserName --dcrdpassword=YourPassword --noclienttls
     
  7. otnieto

    otnieto New Member

    Jan 29, 2016
    4
    2
    Male
    Hi

    Command for my balance?

    Thanks
     
  8. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
     
  9. whis

    whis New Member

    Jan 28, 2016
    59
    7
    @sambiohazard

    To do PoS mining what do i need to do different from your guide?
     
  10. anvoice

    anvoice Member

    Dec 22, 2015
    229
    78
    Male
  11. whis

    whis New Member

    Jan 28, 2016
    59
    7
    In step 3 dcrctl --wallet --testnet -u user -P password --terminal it says NOTE currently --terminal does not work on Windows. Instead you have to use dcrctl to run each command you need seperately.

    How do i use dcrctl?
     
  12. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    To run dcrctl commands you just open a new window and type all commands fully. What that meassage means is that, once you type

    dcrctl --wallet --testnet -u user -P password --terminal

    you will see
    >

    on that prompt/symbol you can directly type wallet commands like

    >getbalance

    and it will work, but this facility is not available in windows, so you have to type full commands each time like

    dcrctl --wallet --testnet -u user -P password --terminal getbalance

    Also to stake, you just need to start your wallet with

    dcrwallet -u user -P password --enablestakemining --balancetomaintain=200.0 --ticketmaxprice=20

    where balancetomaintain = no of coins you don't want to use for staking/buying tickets
    and ticketmaxprice = maximum price you want to pay for tickets

    after that open a new window to run this command, you can close it later

    dcrctl --wallet --testnet -u user -P password --terminal walletpassphrase yourwalletpassphrase 0

    this will unlock the wallet so it can buy tickets for staking.
     
    chappjc likes this.
  13. whis

    whis New Member

    Jan 28, 2016
    59
    7
    Thanks, so i went ahead and started deamon with dcrd --testnet -u 'my username' -P 'my password'

    Then i opened a new cmd window and inserted dcrwallet --create, which says the wallet already exists, cus i made already one for pow.

    But then when i insert in the same window dcrctl --wallet --testnet -u 'my username' (same as deamon) -P 'my password' --terminal it says: error getting terminal state: The handle is invalid.
     
  14. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    If you are on windows, this error will happen, i was just explaining what that command does. Please read my full post before acting. Anyways i updated my guide to include Staking guide. Just try those steps.
     
  15. whis

    whis New Member

    Jan 28, 2016
    59
    7
    When i insert this: dcrwallet --noclienttls --noservertls -u 'my username' -P 'my password' --dcrdusername= 'my username' --dcrdpassword= 'my password' --balancetomaintain 200 --maxticketprice 20

    it gives me this line: unknown flag `maxticketprice'
     
  16. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    My bad it is --ticketmaxprice
    Thanks for noticing this
     
  17. whis

    whis New Member

    Jan 28, 2016
    59
    7
    Np, for the last command
    1. dcrctl --notls --testnet -u walletuser -P walletpass --wallet walletpassphrase [same as in step 4 during wallet creation] 0
    I have no walletpassphrase since when creating wallet the first time i choose no when it asked me if i wanted a passphrase. Is the walletpassphrase neccessary for pos mining?
     
  18. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    this is the same passphrase that you enter twice while creating the wallet, see first 2 steps in step 4. This one is mandatory, you must have entered it when creating your wallet. this is different from public passphrase that is described in @anondran's guide. This is the private passphrase and yes it is needed to unlock wallet & PoS mining.
     
  19. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    When I started my wallet for PoS I used :
    sudo ./dcrwallet -u xxx -P xxx --enablestakemining --balancetomaintain=1 --ticketmaxprice=5,

    I would like to change balanceto mintain to =50

    so with wallet runing i used :
    sudo ./dcrwallet -u c18 -P pass --enablestakemining --balancetomaintain=50 --ticketmaxprice=5
    ans the term just freezes..

    in the dcrctl term > there is no command to do this.. change balancetomain.

    So i to stopped wallet and dcrd out put.
    Disconnected websocket client 127.0.0.1:45941
    10:37:22 2016-02-02 [INF] RPCS: New websocket client 127.0.0.1:45311
    10:37:24 2016-02-02 [INF] RPCS: Beginning rescan for 300 addresses
    10:37:24 2016-02-02 [INF] RPCS: Finished rescan
    and stoped

    my dcrd , and wallet will not restart.

    $ sudo ./dcrd --testnet -u xxx -P xxx
    10:43:08 2016-02-02 [WRN] DCRD: open /root/.dcrd/dcrd.conf: no such file or directory
    10:43:08 2016-02-02 [INF] DCRD: Version 0.0.1-beta
    10:43:08 2016-02-02 [INF] DCRD: Loading block database from '/root/.dcrd/data/testnet/blocks_leveldb'
    10:43:08 2016-02-02 [ERR] DCRD: resource temporarily unavailable
     
  20. whis

    whis New Member

    Jan 28, 2016
    59
    7
    O boy i dont know it anymore, is it not possible to start over and create a new wallet and new passphrase, or something else to retereive my passphrase? Glad this is testnet.
     

Share This Page