[solved]problem Running Solo Sgminer And Dcrd

Discussion in 'sgminer' started by semajjames, Mar 26, 2016.

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

    semajjames New Member

    Mar 26, 2016
    50
    1
    Male
    #1 semajjames, Mar 26, 2016
    Last edited: Mar 28, 2016
    How do I make it so I can connect my 2 rigs to one wallet

    with other coin I use a .conf file for the wallet but I see read nothing about .conf for the decred wallet

    cheers
     
  2. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
    Are you solo mining or mining in a community pool?
     
  3. semajjames

    semajjames New Member

    Mar 26, 2016
    50
    1
    Male
    #3 semajjames, Mar 27, 2016
    Last edited: Mar 27, 2016
    Solo ,,,conect miner straight to wallet
     
  4. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
    When you solo mine, the only thing each miner needs is a connection to dcrd. The easiest way to do this is to just run dcrd on each miner, as follows:
    Code:
     dcrd -u username -P password --miningaddr Dsxxxxxxxxxxxxxxxxxxxxxxxx --notls
    Note: TLS must be disabled on Windows (--notls) for solo mining. You can use the same mining address for any number of miners.

    The --miningaddr flag is an address that you need to generate prior to any of this. There are guides to set this up, and I believe there are also guides for .conf files. Use the help flags for each utility to see the list of available flags and the default directories for these files.

    dcrd -h
    dcrwallet -h
    dcrctl -h
     
    chappjc likes this.
  5. semajjames

    semajjames New Member

    Mar 26, 2016
    50
    1
    Male
    Ok so I use the same instance of dcrd on every rig,,, the mined coins then stay in dcrd untill I run dcrwallet and dcrd on a remote pc at this point dcrwallet syncs with dcrd and my coins are then available from within the wallet ,,

    is that it ?
     
  6. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
    Close, but not quite. When you run dcrd with the command I listed above, the mined coins will be sent to the address specified after the flag "--miningaddr". Once you find a block, the coins exist on the network. When you run dcrd and dcrwallet on another computer, you are accessing the network using your private keys to gain access to your coins. You only need to run dcrwallet when you want to do something with your funds, like purchase PoS tickets or send them to another wallet.
     
  7. semajjames

    semajjames New Member

    Mar 26, 2016
    50
    1
    Male
  8. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
  9. semajjames

    semajjames New Member

    Mar 26, 2016
    50
    1
    Male
    when i start dcrd with a batch file I have to make it like this otherwise dcrd does not start ,,,
    did I get something wrong somewhere ?

    dcrd.exe --rpcuser --rpcpass --miningaddr --notls
     
  10. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
    If you tried to open dcrd just like that, you're missing the other halves of the flag requirements. It should be:

    dcrd.exe --rpcuser YOURUSERNAME --rpcpass YOURPASSWORD --miningaddr YOURMININGADDRESS --notls

    Where your username and password are something you make up on the spot.
     
  11. semajjames

    semajjames New Member

    Mar 26, 2016
    50
    1
    Male
    #11 semajjames, Mar 28, 2016
    Last edited: Mar 28, 2016
    i can start dcrd the user/pass and mining address all work I think this because if i put

    testnet=0
    listen=127.0.0.1:19109
    rpcuser=MYUser
    rpcpass=MyPassword

    in dcrd.conf file then my sgminer connects and works
    then I delete the dcrd folder containing dcrd.conf and then i make a new dcrd.conf file like this

    testnet=0
    listen=127.0.0.1:9109
    rpcuser=MYUser
    rpcpass=MYPassword

    restart dcrd all containing the correct user/pass and mining address i wait for it to load all the blockchain

    but this time when i start the miner it will not connect

    the text when dcrd starts says this

    17:32:37 2016-03-28 [WRN] AMGR: Skipping bound address: address 127.0.0.1 is not
    routable
    17:32:37 2016-03-28 [INF] BMGR: Generating initial block node index. This may t
    ake a while...
    17:32:38 2016-03-28 [INF] BMGR: Block index generation complete
    17:32:38 2016-03-28 [WRN] RPCS: Can't listen on 127.0.0.1:9109: listen tcp4 127.
    0.0.1:9109: bind: Only one usage of each socket address (protocol/network addres
    s/port) is normally permitted.
    17:32:38 2016-03-28 [INF] SRVR: Server listening on 127.0.0.1:9109
    17:32:38 2016-03-28 [INF] RPCS: RPC server listening on [::1]:9109
     
  12. Shadowlance

    Shadowlance Full Member

    Jan 9, 2016
    220
    155
    Male
    A bound address means that some other process is already using that IP and port. Make sure you don't already have another instance of dcrd running (It might be one you've closed but didn't release the port for some reason). The best way is to reboot and try again.
     
  13. semajjames

    semajjames New Member

    Mar 26, 2016
    50
    1
    Male
    thanks ,,, I think what is was is the fact that i was using a dcrd.conf file causing two instances of my rpc details ,,, when i just deleted the file and started dcrd without it ignoring the warning about dcrd not finding it everything worked
     
  14. jumparo

    jumparo New Member

    Mar 27, 2016
    23
    0
    Hello guys , I am trying to mine decred with nicehash/sgminer, but i have no shares....only this : "hw : 16 and a : 0" with ati 270. with these settings :
    sgminer.exe -k decred -I 19 -g 1 -w 256 -o http://dcr.suprnova.cc:8120 -u asd.1 -p 123

    Any ideas?
    Thanks in advance !
     

Share This Page