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. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    Correct. That is one of the main reasons for having deterministic key generation based on a seed.
     
    jimmy16 likes this.
  2. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    Shouldn't this be a default? Why would anyone not want to stake?
     
  3. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    Because you can't spend the coins used to purchase a stake ticket until the ticket either wins a lottery or it expires. On mainnet that could be up to ~4.7 months.
     
    Reynold likes this.
  4. Akai

    Akai New Member
    Advocate (BitcoinTalk)

    #204 Akai, Feb 4, 2016
    Last edited: Feb 4, 2016
    Where can i find more info about how ticket works?

    EDIT: Already found here. thank you :)
     
  5. .m.

    .m. New Member

    Jan 23, 2016
    55
    10
    Hi, I believe you need to install proprietary nvidia driver ( google it ) and then check with :
    find / -name "libOpenCL.so*"
    and if still not working, set the OCLSODIR=<the directory of your openCL so file>
    and start with
    LD_LIBRARY_PATH=$OCLSODIR ./cgminer ..........

    godspeed !
     
    jimmy16 likes this.
  6. neo cortex

    neo cortex New Member

    Dec 17, 2015
    7
    1
    Male
    regarding step 8 I keep getting this error. is there something I missed out?

    win 7 32bit
    Kaspersky internet security 15 (I disabled protection though)
     

    Attached Files:

  7. whis

    whis New Member

    Jan 28, 2016
    59
    7
    @sambiohazard

    At step 4 for pos after entering in a new window
    1. dcrctl --notls --testnet -u walletuser -P walletpass --wallet walletpassphrase [same as in step 4 during wallet creation] 0
    Nothing special happens, just a new C:\Users\username\Desktop\New folder\windows-amd64> shows up

    What do i need to do next actually? I guess next step is to stake, so to buy stake tickets/vote? but i dont have any test decred. I actually dont know which way to go from here.
     
  8. Akai

    Akai New Member
    Advocate (BitcoinTalk)

    Probably before this, you should launch the daemon
    dcrd --testnet --notls -u user -P pass

    unless you do this you cannot connect wallet to daemon and move on
    Let us know ;)
     
  9. Metallicelmo

    Metallicelmo New Member

    Jan 30, 2016
    76
    10
    Male
    I found this in the Quick Reference, can anyone explain what this does and why you should or should not use this?
    dcrwallet -u user -P password --enablestakemining --balancetomaintain=200.0 --ticketmaxprice=20
    can anyone explain in baby language?
     
  10. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    in the command window with wallet running in it, you will see this message

    21:12:19 2016-02-04 [INF] DCRW: The wallet has been unlocked without a time limit.

    This means wallet is now unlocked and if you have done everything right, it will start buying tickets & after a few hours to a day, it will start voting on blocks.

    When it buys a ticket you will se something like

    "successfully inserted sstx" in wallet window

    and when it buys a ticket you will see something like this in wallet window.

    20:29:07 2016-02-04 [INF] WLLT: Voted on block 000000000016906166a871fa42ed6a3e4
    ac66a5e0df2abcab0ee1c387765b5e7 (height 7040) using ticket 8f1c1801626c134882da2
    0d231583f9b77600df7db74dcefc1ead212a32e9ecf (vote hash: d398e48b91d1b56de36f3fd2
    f0144610fd8044fdf3fc2486a2141ada5a2ef5cb)
     
  11. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    hmm did you create a public passphrase during wallet creation in step 4?
     
  12. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    just read the Solo Stake Mining section in my guide. If you can't understand from that then i will explain again
     
  13. whis

    whis New Member

    Jan 28, 2016
    59
    7
    #213 whis, Feb 4, 2016
    Last edited: Feb 4, 2016
    I see this, i had --balancetomaintain 200 and --ticketmaxprice 5, but i dont have any test decred in my wallet though.

    sn.PNG
     

    Attached Files:

    • sn.PNG
      sn.PNG
      File size:
      26 KB
      Views:
      5
  14. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    I am not sure why you & @neo cortex are getting those errors. I just tried my own guide to check if i mad any mistakes in it but i get no errors. Just make sure your wallet is unlocked & you didn't create a public passphrase during wallet creation. I hope someone else can come in and solve your problem.
     
  15. whis

    whis New Member

    Jan 28, 2016
    59
    7
    Now i tried again and this time i see the command DCRW: The wallet has been unlocked without a time limit, but not sure about the rest of the commands thats showing up.
    sn.PNG
     
  16. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    For reference, a new Windows cgminer binary will be released today that works properly with TLS and has a new parameter "-cert" to specify the appropriate certificate. The included start_local.bat will now include the new -cert parameter with it pointed at the default location.

    In other words, once the binaries are released, I'd suggest this guide be updated to remove all of the --notls, --noclienttls, and --noservertls switches everywhere since they will no longer be necessary.
     
    jimmy16, sambiohazard and Akai like this.
  17. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    how do i connect to test-net, ?
    1) run node for PoS...
    2) run cgminer..
    need ./cgminer --blake256 --???????????
     
  18. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    steps 13 & 14.
     
  19. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    #219 jimmy16, Feb 4, 2016
    Last edited: Feb 4, 2016
    Im on linux cent OS , there is NO bat file for Linux in the tar pack
    it has a blake256.cl but thats for algo

    so.. your winbat =
    cgminer --blake256 -o 127.0.0.1:19109 -u user -p password

    So.. $ sudo ./cgminer --blake256 -o 127.0.0.1:19109 -u name -P pass
    but returns libcurl.so.4 error and extra commandline arguments
     
  20. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    yeah, i am not sure what file linux has but you can always paste above full command in terminal/command window to start the miner. Also remember to use same user/pass as daemon/dcrd.
     

Share This Page