Browse Source

Change default blockpoll to 5s, assuming the notifier will be used with bitcoind

master
Con Kolivas 10 years ago
parent
commit
f770110e42
  1. 2
      ckpool.conf
  2. 4
      src/ckpool.c

2
ckpool.conf

@ -13,7 +13,7 @@
],
"btcaddress" : "14BMjogz69qe8hk9thyzbmR5pg34mVKB1e",
"btcsig" : "/mined by ck/",
"blockpoll" : 50,
"blockpoll" : 5000,
"update_interval" : 30,
"serverurl" : "ckpool.org:3333",
"mindiff" : 1,

4
src/ckpool.c

@ -1207,8 +1207,10 @@ int main(int argc, char **argv)
ckp.donaddress = "14BMjogz69qe8hk9thyzbmR5pg34mVKB1e";
if (!ckp.btcaddress)
ckp.btcaddress = ckp.donaddress;
/* Default blockpoll is sanity check only when notifier is not used or
* fails */
if (!ckp.blockpoll)
ckp.blockpoll = 50;
ckp.blockpoll = 5000;
if (!ckp.update_interval)
ckp.update_interval = 30;
if (!ckp.mindiff)

Loading…
Cancel
Save