Bitcoin Forum
May 10, 2024, 06:08:02 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: failover code for poolmining  (Read 103 times)
mycoin2018 (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
January 16, 2018, 05:12:45 PM
 #1

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
1715321282
Hero Member
*
Offline Offline

Posts: 1715321282

View Profile Personal Message (Offline)

Ignore
1715321282
Reply with quote  #2

1715321282
Report to moderator
1715321282
Hero Member
*
Offline Offline

Posts: 1715321282

View Profile Personal Message (Offline)

Ignore
1715321282
Reply with quote  #2

1715321282
Report to moderator
1715321282
Hero Member
*
Offline Offline

Posts: 1715321282

View Profile Personal Message (Offline)

Ignore
1715321282
Reply with quote  #2

1715321282
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715321282
Hero Member
*
Offline Offline

Posts: 1715321282

View Profile Personal Message (Offline)

Ignore
1715321282
Reply with quote  #2

1715321282
Report to moderator
zer0k
Sr. Member
****
Offline Offline

Activity: 349
Merit: 250


View Profile WWW
January 16, 2018, 11:27:07 PM
 #2

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

    }

mycoin2018 (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
January 17, 2018, 11:21:53 AM
 #3

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!