Decred Setup On Windows X64 And Mining On Testnet

Discussion in 'Proof-of-work Mining' started by Reynold, Jan 31, 2016.

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

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    Decred setup on Windows x64 and mining on Testnet

    Since Decred is using blake256, I will be setting up mining on my windows machine because it has a better graphics card.

    Info for the setup came from here:
    https://forum.decred.org/threads/public-testnet-binaries-source-code-and-documentation.334/

    Download the binaries:
    https://github.com/decred/dcrd/releases/tag/v0.0
    https://github.com/decred/cgminer/releases/tag/v0.0

    The quick reference guide will help you:
    https://wiki.decred.org/Quick_Reference

    Start the decred daemon the first time:
    dcrd.exe -u YourUserName -P YourPassword

    Start the decred wallet and get a new address:
    dcrwallet --create
    dcrwallet --dcrdusername=YourUserName --dcrdpassword=YourPassword /noclienttls
    You will need to set up a passphrase that you should save. You will need it to unlock your wallet later.

    Your wallet will get created somewhere here:
    C:\Users\YourWindowsUserName\AppData\Local\Dcrwallet\testnet

    Get a new address:
    dcrctl --testnet -u YourUserName -P YourPassword --wallet getnewaddress

    At this point, you will not need this wallet open to start mining, so you can shut it down, but you can unlock it and check the balance anytime you want when it is running.

    dcrctl --testnet -u YourUserName -P YourPassword --wallet getbalance
    dcrctl --testnet -u YourUserName -P YourPassword --wallet walletpassphrase "your passphrase here" 9999999

    Shut down and start the decred daemon again. Note that if you are on windows, you will need the –notls flag if you want to mine:
    dcrd.exe --notls -u YourUserName -P YourPassword --miningaddr=YourNewDecredAddress

    Now to start mining:
    cgminer.exe --blake256 -o http://127.0.0.1:19109 -u YourUserName -p YourPassword --intensity d
     
    sambiohazard and Freemind like this.
  2. LDWCom

    LDWCom New Member

    This will help a lot of beginners. Thx for this :)
     
    Reynold likes this.
  3. Metallicelmo

    Metallicelmo New Member

    Jan 30, 2016
    76
    10
    Male
    #3 Metallicelmo, Jan 31, 2016
    Last edited: Jan 31, 2016
    So I have my pc mining now, but when I check my balance like this -->
    dcrctl --testnet -u user -P pass --wallet getbalance I get a message 401 Unauthorized. Does this mean the wallet is locked?
     
  4. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    @Reynold you can use 0 to unlock wallet indefinately.
     
    Reynold likes this.
  5. Metallicelmo

    Metallicelmo New Member

    Jan 30, 2016
    76
    10
    Male
    So when cgminer tells you "Found block for pool 0!" does that mean my pc discovered a block? then what? are coins or some of them transferred to the mining address specified when starting decred deamon?
     
  6. adam2312

    adam2312 Jr. Member

    Jan 11, 2016
    118
    43
    Male
    Yes, Congrats!

    Use dcrctl --testnet -u "user" -P "password" --notls --wallet listtransactions
    to see the addition of funds to your wallet. Balance will update after 16 confirmations in testnet.
     
  7. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    No you will see something like "Accepted vmrlkgj55 Diff 1.05/1.6" when you find a block. and your A: parameter will be greater than 0.
     
  8. adam2312

    adam2312 Jr. Member

    Jan 11, 2016
    118
    43
    Male
    I'm sorry for my misinformation. While the quote "Found block for Pool 0!" was the initial indicator for my finding a block, I defer to sambiohazard, whose guide I used to get up and mining.
     
  9. rohit kumar

    rohit kumar New Member
    Advocate (Reddit)

    Dec 28, 2015
    15
    10
    Male
    software developer
    India
    how many blocks should be scanned to get my new address
     
  10. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    @Metallicelmo Did you start your testnet daemon with the "--notls" flag?
    dcrd.exe --notls -u YourUserName -P YourPassword --miningaddr=YourNewDecredAddress

    And did you start your wallet with the "/noclienttls" parameter?
    dcrwallet --dcrdusername=YourUserName --dcrdpassword=YourPassword /noclienttls

    I found that on windows, I was unable to communicate with either of these without these flags/parameters.
     
  11. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    @sambiohazard Nice! Thank you, the 0 was not working for other older coins.
     
    sambiohazard likes this.
  12. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    @rohit kumar A new address should have been provided instantly.
     

Share This Page