Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: mycoin2018 on January 16, 2018, 05:12:45 PM



Title: failover code for poolmining
Post by: mycoin2018 on January 16, 2018, 05:12:45 PM
Hi guys I am trying to make a .conf file to say:

if yiimp server go down for more than 300 second go to mine another pool:

Here is my code:

{

  "pools":[{
    "name": "Yiimp Pool Lux",
    "url": "stratum+tcp://yiimp.eu:8339",
    "user": "wallet",
    "pass": "c=LUX"
  },
  {
    "name": "Next Pool",
    "url": "stratum+tcp://pool.bsod.pw:6667",
    "user": "wallet",
    "pass": "c=LUX"
  }],

  "algo" : "phi"
}

Do I need to include timeout somehow from this reference?

  -T, --timeout=N       network timeout, in seconds (default: 300)

https://github.com/nicehash/ccminer-nanashi/blob/master/README.txt

Thanks


Title: Re: failover code for poolmining
Post by: zer0k on January 16, 2018, 11:27:07 PM
Try something more like this...

{
    "_note": "Sample failover with 3 pools",
 
    "pools":[{
        "name": "yiimp.ccminer.org",
        "url": "stratum+tcp://yiimp.ccminer.org:8333",
        "user": "WALLETADDRESS",
        "pass": "c=LUX"
    },
    {
        "name": "FutureCoins",
        "url": "stratum+tcp://lux.futurecoins.club:6667",
        "user": "WALLETADDRESS",
        "pass": "c=LUX",
        "time-limit": 3600
    },
    {
        "name": "altminer.net",
        "url": "stratum+tcp://us.altminer.net:6667",
        "user": "WALLETADDRESS",
        "pass": "c=LUX",
        "time-limit": 3600
    }    ],
 
    "algo" : "phi",
      "protocol" : false,
    "cpu-priority" : 3,
    "timeout" : 60,
    "api-bind" : "0.0.0.0:4068",
    "api-remote" : true,
    "statsavg" : 20,
    "intensity" : 21,
    "max-log-rate" : 60

    }


Title: Re: failover code for poolmining
Post by: mycoin2018 on January 17, 2018, 11:21:53 AM
Hi Thanks for the response really appreciate

just to check did this code rotate the pool:

"time-limit": 3600

Does this say change pool every 1 hr?

 Also would this be timeout id d/c?

 "timeout" : 60,

And just one more question if it is ok:

   "api-bind" : "0.0.0.0:4068",
    "api-remote" : true,

What do I need this for?

Thanks for reply