Github link to the .bat files I created to simplify the windows Geth and Ethminer setup

jakvesjakves Member Posts: 58
https://github.com/Vesterberg/EthminerBatchscripts

Binaries are included but feel free to replace them with binaries from the cpp-ethereum and go-ethereum releases

It takes 5 steps

Download and extract the repo .zip file

Setup-1-CreateNewAccountGeth.bat
^ Greate account

Setup-2-MakeAccount0MiningBenefactor30Seconds.bat
^ Assign account as mining rewards benefactor

Use-1-StartGethSendWorkpackets128MaxPeersLogConsole.bat
^ Starts Geth console, sends work packets, connects to max 128 peers, and logs geth output to geth.log

Use-2-StartEthminerGPU.bat
^ Starts ethminer mining on the local geth node

Use-2-StartEthminerGPUethpoolorg.bat
^ Starts mining on ethpool, remember to change the ether address to your own

Comments

  • trotoltrotol Member Posts: 102
    edited August 2015
    geth --exec "miner.setEtherbase(eth.accounts[0])"
    is it obligate?
    my node works with
    geth.exe --genesis c:\ether\genesis_block.json --rpc --rpcaddr "127.0.0.1" --rpcport 8545 --rpccorsdomain "*" --maxpeers "128" --nat "any" --etherbase "0xmyaccountaddress"
    Does it equal to your syntax?
  • jakvesjakves Member Posts: 58
    Obligate?


    geth.exe --genesis c:\ether\genesis_block.json --rpc --rpcaddr "127.0.0.1" --rpcport 8545 --rpccorsdomain "*" --maxpeers "128" --nat "any" --etherbase "0xmyaccountaddress"

    "--genesis c:\ether\genesis_block.json" is not needed anymore

    geth.exe --rpc --rpcaddr "127.0.0.1" --rpcport 8545 --rpccorsdomain "*" --maxpeers "128" --nat "any" --etherbase "0xmyaccountaddress"

    "--rpc" distributes work packets

    "--rpcaddr "127.0.0.1" --rpcport 8545 --rpccorsdomain "*"" <- Im not sure about this one. It distributes work packets to that address, or from that address? Anyway, probably not needed for a local machine geth node

    geth.exe --rpc --maxpeers "128" --nat "any" --etherbase "0xmyaccountaddress"

    "--maxpeers "128" " < Yep matches

    geth.exe --rpc --maxpeers "128" --nat "any" --etherbase "0xmyaccountaddress"

    "--nat "any"" <I dont recognize that command, What does it do?

    "--etherbase "0xmyaccountaddress"" < Im guessing that this is the same as geth "--exec "miner.setEtherbase(eth.accounts[0])"". You dont need that if you launch geth more than once unless you want to change it to another adress.

    geth.exe --rpc --maxpeers "128"

    Yeah, it equals my syntax. I dropped the .exe since it isnt needed.
  • trotoltrotol Member Posts: 102
    Anyway...a couple of blocks today with custom syntax.
Sign In or Register to comment.