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
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?
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?
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.
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.
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.
@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.