Feedback Public Testnet Evaluation

Discussion in 'Technical Development' started by tacotime, Jan 6, 2016.

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

    ay-p Full Member
    Developer

    Dec 7, 2015
    148
    106
    Male
    Well depends. If you are cpu mining (dcrctl setgenerate 1), it is probably doubtful that you will be able to mine a block before the GPU miners, but if you do you will see: Block Submitted....

    In cgminer, it will say: Block accepted ...

    Also keep in mind getbalance will not show non-mature coinbase transactions, which is 16 blocks.

    You can also try getbalance default 0, which is asking for the balance of the default account and 0 confirmations.
     
  2. SG-O

    SG-O Member
    Developer

    Jan 13, 2016
    104
    86
    Male
    Software Dev
    Milky Way
    Ah patience is the key :D
    Also you have to restart dcrd in tls mode.

    Now my balance has significantly changed.
     
  3. lulworm

    lulworm New Member

    Jan 14, 2016
    13
    11
    Male
    Web developer
    Ghana
    When you look at the debug message for "FOund block for pool 0!", it say share above target.
    I am sure this is the reason why.
     
  4. rohit pawar

    rohit pawar Member
    Advocate (Reddit)

    Dec 26, 2015
    166
    87
    Male
    India
    Can anybody please post detailed guide to start mining on windows ?
    with detailed guide on where to put ur wallet address and how to start dcrd(wtf is this)
    that would be very helpful
     
  5. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
    #25 David, Jan 27, 2016
    Last edited: Jan 28, 2016
    EDIT: Comments removed for command line clarity.

    Rohit,

    Start --->here<---.
    If you want to mine In Windows, you must disable TLS on each of these commands. It appears that cgminer does not support TLS. Here are the modified versions of the commands.
    Go look at the binaries and download the windows-386 zip if you are using a 32-bit system or the windows-amd64 zip for a 64bit systems.
    Extract the zip you downloaded to it's own directory. Open this new directory and you will see 3 exe files (dcrd, dcrwallet, dcrctl)
    Hold shift and right click in the empty white space next to these files, and click open command window here. This is where you will run the following commands (taken from the wiki, but modified to disable TLS):

    dcrd:
    dcrd --testnet -u user -P pass /notls

    dcrwallet:
    dcrwallet --create
    dcrwallet -u user -P pass --dcrdusername=user --dcrdpassword=pass /noclienttls /noservertls
    dcrctl --testnet -u user -P pass --wallet getnewaddress /notls
    dcrctl --testnet -u user -P pass --wallet walletpassphrase test 120 /notls
    dcrctl --testnet -u user -P pass --wallet getbalance /notls


    The first 3 commands are all you need to get started (well, 4 actually, so you can get your address and post it in the other thread to receive some testnet Decred). Setting up cgminer is fairly straightforward and is discussed here in the Wiki.

    Firstly, we need to modify the daemon to start with an address for miner deposits. You can use the getnewaddress command listed above if you want an address just for miner deposits. You can kill the previous dcrd command with Crtl+C and replace it with this:

    dcrd --testnet -u user -P pass /notls --miningaddr=TsoEdubgeuLP3izLNxxxxxxxxxxxxxxx

    Download and extract the cgminer binary zip from GitHub and extract it to its own folder. Open a command prompt window like you did earlier in this new cgminer directory. Run this command in this command prompt, using the same credentials you set earlier.

    cgminer --blake256 -o 127.0.0.1:19109 -u user -p pass

    This will launch the GPU miner, and the output should look something like:

    cgminer version 3.7.2 - Started: [2016-01-27 21:38:43]
    ----------------------------------------------------------
    (5s):1.162G (avg):1.859Gh/s | A:0 R:0 HW:0 WU:125.8/m



    Good luck!
     
  6. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
    Does this mean that coins mined (in Windows, with TLS disabled) will not find their way into the wallet?
    Will there be support (or a workaround, like there is in Linux) for using TLS with cgminer?
     
    Suraj and zkott like this.
  7. HeapsIoN

    HeapsIoN New Member
    Advocate (Facebook)

    Dec 28, 2015
    45
    4
    Male
    Thanks for this David, has helped me!


    Connected to testnet fine, but having trouble with the below.
    Code:
    dcrd --testnet -u user -P pass /notls --miningaddr=TsoEdubgeuLP3izLNxxxxxxxxxxxxxxx
    I don't understand, am i supposed to create a wallet first using dcrwallet?
    What about the one I created from the Airdrop Confirmation?
     

    Attached Files:

  8. HeapsIoN

    HeapsIoN New Member
    Advocate (Facebook)

    Dec 28, 2015
    45
    4
    Male
    Wait, unless I have to create one for the test net only? Is the one from the airdrop for live?
     
  9. ClokworkGremlin

    ClokworkGremlin Sr. Member

    Jan 10, 2016
    535
    381
    Male
    Whatever I want.
    Testnet addresses begin with Ts, live addresses begin with Ds. You will need to generate a Testnet address to work on the Testnet, the Airdrop address you generated earlier will be used to receive coins when the Mainnet launches, hopefully in about a week.(though it could be longer depending on how testing goes this week)
     
    David likes this.
  10. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
    Yes... use the command
    Code:
    dcrwallet --create

    to create a wallet for testnet. The one you created from the Airdrop confirmation is for mainnet (in roughly a week or so, so long as no major issues arise during this testnet phase). The commands I listed in the guide above are meant to be initiated in order, from top to bottom. (The wallet creation step is step # 2)

    The command that you quoted is meant to replace command #1. (The only thing that's different is that you are restarting the DCR daemon with an address of your wallet to use to send any mined coins to). So... first run this command:

    Code:
    dcrctl --testnet -u user -P pass --wallet getnewaddress /notls


    This will give you a brand new testnet address for your testnet wallet. Take the new testnet address (in the form of Txxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) and add it to the command you quoted.. for instance:

    Code:
    dcrd --testnet -u user -P pass /notls --miningaddr=Txxxxxxxxxxxxxxxxxxxxxxx
     
    chappjc and ClokworkGremlin like this.
  11. ig0tik3d

    ig0tik3d New Member

    Jan 23, 2016
    23
    6
    Male
    how to send coins on windows?
     
  12. HeapsIoN

    HeapsIoN New Member
    Advocate (Facebook)

    Dec 28, 2015
    45
    4
    Male
    Trying this
    dcrctl --testnet -u user -P pass --wallet getnewaddress /notls

    Anyone else getting/got: no connection could be made because the target machine actively refused ?
     
    Antway likes this.
  13. anondran

    anondran Full Member
    Advocate (Reddit)

    Jan 13, 2016
    131
    119
    Male
    #33 anondran, Jan 28, 2016
    Last edited: Jan 28, 2016
    Hello David,

    dcrwallet:
    dcrwallet --create
    dcrwallet -u user -P pass --dcrdusername=user --dcrdpassword=pass /noclienttls /noservertls


    I cannot seem to get past the above step. I get the error 'INVALID PASSPHRASE FOR MASTER PUBLIC KEY'.
    Are the user and pass in dcrwallet and dcrdusername and dcrdpassword the same?
    ---------------------------------------------------------------------------------------------------------------------------------------------

    EDITED: (Solved)Thanks to kaida on irc #decred for the solution. If you had set up additional encryption during the wallet creation process, where it asked for a private passphrase and then for a public passphrase, you must do the following. The string becomes,i.e, you should add --walletpass publicpassphrase

    Code:
    dcrwallet -u user -P pass --walletpass publicpassphrase --dcrdusername=user --dcrdpassword=pass /noclienttls /noservertls
    ---------------------------------------------------------------------------------------------------------------------------------------------
     
  14. Antway

    Antway New Member

    Dec 21, 2015
    32
    6
    Male
    Lead Engineer, web-programmer
    Russia, Moscow
    select in step: dcrwallet -u user -P pass --dcrdusername=user11 --dcrdpassword=pass11 /noclienttls /noservertls
    user and password, that you used when you call dcrd (dcrd --testnet -u user11 -P pass11 /notls)

     
  15. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    How to remove wallet?
    Why it's not possible to create many wallets? (output is "The wallet already exists.")

    the same for me
     
  16. LDWCom

    LDWCom New Member

    Why do you need multiple wallets?

    You can just use dcrlt to create a new "address", don't see the advantage of having multiple wallets.
     
  17. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    I don't know password for my wallet, so it's useless. I need either remove it or create another one.
     
  18. LDWCom

    LDWCom New Member

    Well than, remove the entire wallet folder. "windows: AppData/local/Decredwallet" i believe. And create a new one.
     
    Dyrk likes this.
  19. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    #39 Dyrk, Jan 28, 2016
    Last edited: Jan 28, 2016
    How to check current ticket price / PoS difficulty?
    Is there also a way to check how many active tickets you have and amount of free & locked coins in the wallet?
    How to see the list of all my addresses in the wallet?

    Is there a way to add manually new address to the wallet?
    I generated new First Address with: dcraddrgen -testnet testaddr.decred
    And now I want to use that address in already existing wallet, is this possible?
     
  20. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    getstakedifficulty & ticketsforaddress "[your address]" might help. Last two you can set with "balancetomaintain" while launching wallet
     
    Dyrk likes this.

Share This Page