From f770110e420535631cf18fd395d5c4abadd16091 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 10 Sep 2014 21:27:19 +1000 Subject: [PATCH] Change default blockpoll to 5s, assuming the notifier will be used with bitcoind --- ckpool.conf | 2 +- src/ckpool.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ckpool.conf b/ckpool.conf index ad29587a..c3b8662b 100644 --- a/ckpool.conf +++ b/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, diff --git a/src/ckpool.c b/src/ckpool.c index 6e41347b..2146d658 100644 --- a/src/ckpool.c +++ b/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)