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

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    So.. $ sudo ./cgminer --blake256 -o 127.0.0.1:19109 -u name -P pass
    but returns libcurl.so.4 error and extra commandline arguments
     
  2. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    That is most probably related to other libraries cgminer uses, ask in cgminer thread about this. You might have to download/compile libcurl & pthreads libraries i guess.
     
  3. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    #223 jimmy16, Feb 4, 2016
    Last edited: Feb 4, 2016
    ok none of you window peeps seem to be crying.. so i'm going to load it and see.....
    Back to the drawing board...

    Allready moving faster....
    Both cards and drivers working...
     
    Reynold likes this.
  4. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    sambiohazard and jimmy16 like this.
  5. jolan

    jolan Sr. Member
    Developer

    Dec 7, 2015
    197
    226
    Male
    Decred Team Member
    -u name -p pass (lowercase -p for cgminer but capital -P for the dcr* commands)

    As far as libcurl, you probably just need to install it. On debian/ubuntu:

    sudo apt-get install libcurl3 libncurses5
     
    chappjc and jimmy16 like this.
  6. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    on windows 7.
    dcrctl will not work or open terminal?
    step 8
     
  7. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    LOL, no wonder my balance went down a little while after I enabled staking. :D
     
  8. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    Ok the guide is now updated to work with latest cgminer release.
     
    jimmy16 and davecgh like this.
  9. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    #229 zero, Feb 6, 2016
    Last edited: Feb 6, 2016
    Thanks for the guide, I hope I've done everything right.
     
    sambiohazard likes this.
  10. jack.liver

    jack.liver New Member

    Feb 1, 2016
    20
    4
    Male
    I'm trying solo staking, does anyone know why I get this message ?

    17:33:55 2016-02-07 [WRN] WLLT: A chainSvr error was returned attempting to purchase a ticket; ticket purchases aborted.
     
  11. Nesp

    Nesp New Member

    Feb 6, 2016
    14
    11
    Male
    I anyone managed to connect windows miner to linux server or otherwise?
     
  12. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    #232 zero, Feb 7, 2016
    Last edited: Feb 7, 2016
    Some questions I think that need to be answered to clear out things:

    1) Is there any command to check which addresses are generated from our wallet?
    2) Does every address in a wallet keep it's own amount of DCR? And if so:
    • What is the command we can use to sent DCR from one address to another into the same wallet?
    • What is the command to check balance of every different address active in our wallet?
    • How can we delete an active address in our wallet?
    3) Is there a way to change our wallet passphrase?
    4) Is there a way to change user/pass of dcrd and wallet?
    5) What would be the point of passphrase for public data even on Mainnet?
    6) Is there a way to run multiple wallets on a machine at the same time so as to transfer funds between them? (without using virtual machines)
    7) By keeping a copy of the Dcrwallet folder (C:\Users\"username"\AppData\Local\Dcrwallet on Windows) can we keep a backup of our wallet without the need to use our seed if we copy it to another machine or not?
    8) By keeping a copy of the Dcrd folder (C:\Users\"username"\AppData\Local\Dcrd) can we keep a backup of Decred blockchain - when it will be on Mainnet - and use it to another machine or not?
    9) Can we change C:\Users\"username"\AppData\Local\Dcrd and C:\Users\"username"\AppData\Local\Dcrwallet locations so as to run them from other drives?
     
  13. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    I will try to answer as many as possible.

    1. getaddressesbyaccount [accountname] (use "default" if you haven't created any accounts)
    2. Yes, most addresses are created to send change from a tx back to the wallet.
    3. walletpassphrasechange "oldpassphrase" "newpassphrase"
    4. Just launch dcrd/dcrwallet with new passwords
    5. No idea, @davecgh can answer.
    6. I am not sure it is possible on same network. Also devs will reset the test network before launching mainnet so don't think you can send testnet coins to mainnet ;) Anyways i don't think its possible to do that.
    7. Yes you can but there was some reason given by devs to use/save seed. Ask them again.
    8. Current blockchain is testnet chain which will of no use when mainnet launches, although you can save the blockchain this way but can't use one for another.
    9. Yes just use --datadir [path to where data for wallet/blockchain is] flag with dcrd & dcrwallet.
    I think most of these answers are correct but still confirm these with a dev.
     
    zero likes this.
  14. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    Thanks for the answers, let's see how things will be when Mainnet will be online.

    We will use the same commands with Mainnet by changing --testnet to --mainnet or --mainet?
    And I think we have to delete dcrd and dcrwallet folders and use mainet software of course.
     
    sambiohazard likes this.
  15. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    we just have drop that flag, mainnet binaries will by default work on mainnet so no need for that.
     
    chappjc and zero like this.
  16. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    So in Windows we just have to unzip the mainnet zip files and commands like this:

    dcrd --testnet -u user -P pass --miningaddr=[your address from step 9] (Make sure to use same password & username as in step 1)

    will be:

    dcrd --mainnet -u user -P pass --miningaddr=[your address from step 9] (Make sure to use same password & username as in step 1)

    or just:

    dcrd -u user -P pass --miningaddr=[your address from step 9] (Make sure to use same password & username as in step 1)

    ?
     
  17. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    There are several pieces of "pseudo public" information which are still useful to protect against general public knowledge for the privacy conscious among us.

    For example, all addresses are generated deterministically, so each account has an extended public key associated with. If you don't have your local wallet database encrypting those extended public keys, anyone who got your wallet database would then easily be able to determine every address you have used and will ever use. With that information they could then determine your exact balances and track every single transaction involving you for as long as you continue using the same seed.

    Note that this doesn't mean they could actually steal your coins or anything as those details are encrypted by the private passphrase you are required to have.
     
    chappjc, zero and sambiohazard like this.
  18. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    yeah pretty much, you can use the flag to be extra careful. Also i am not yet sure if things will change as i see dcrutil & dcrrpcclient but no dcrctl.
     
  19. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    Thanks for the reply. Is there a way to add public data passphrase afterwards?
     
  20. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    I'm not really sure on that one as I personally have had very little to do with the wallet. I'm certain the passphrase can be changed programmatically, but I don't know if there is a way to change it via the RPC interface or CLI. Perhaps one of the wallet devs can answer that.
     
    zero likes this.

Share This Page