-ck
Moderator
Legendary
Offline
Activity: 2492
Merit: 1047
Ruu \o/
|
 |
January 11, 2018, 09:45:44 PM |
|
@-ck
I get a segfault with ckpool-splns. It is easily reproducible and so is the fix.
When starting with empty/nonexistant log directories and sock directories, ckpool starts but segfaults as soon as it connects to a bitcoind.
Fix I stumbled upon is to run non-splns ckpool for a bit, then close and run ckpool-splns. No segfaults.
Sorry if this is documented somewhere. Bitbucket seems to have been a mess lately.
Ckpool-splns was designed to be used on the ckpool.org pool only so I didn't really add much in the way of documentation for it apart from in code comments, nor tested it in many environments. Thanks for that. Be aware that if you're using the splns fork with hundreds of users, you must leave room in your block size for the generation transaction as well so set block weight in bitcoind to less than the full amount (something like 3.85MB instead of the max 4MB). Bitbucket had a major cloud storage failure of some sort.
|
|
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
|
WBF1
|
 |
January 11, 2018, 10:56:11 PM |
|
You mean with blockmaxweight right?
|
|
|
|
-ck
Moderator
Legendary
Offline
Activity: 2492
Merit: 1047
Ruu \o/
|
 |
January 12, 2018, 01:08:15 AM |
|
You mean with blockmaxweight right?
Yes
|
|
|
|
WBF1
|
 |
January 12, 2018, 05:39:26 AM |
|
So I'm pretty sure I know your stance on the subject, but FYI I (re-)launched luckypool.co running on ckpool-splns. Its a Bitcoin Cash mining pool backed by a Bitcoin Unlimited node. No Segwit, so not sure how that will affect ckpool (if at all). I did test on testnet and it worked as expected. blockmaxweight is something specific to segwit.
Let me know if you'd like a blurb at the bottom of my pool's home page (which is somewhat inspired by ckpool.org, although, when you're going for the simple look, there aren't a ton of options... maybe I'll add a splash of color).
|
|
|
|
-ck
Moderator
Legendary
Offline
Activity: 2492
Merit: 1047
Ruu \o/
|
 |
January 12, 2018, 06:31:49 AM |
|
Let me know if you'd like a blurb at the bottom of my pool's home page (which is somewhat inspired by ckpool.org, although, when you're going for the simple look, there aren't a ton of options... maybe I'll add a splash of color).
So long as you say what code it's based on, I'm happy. You need to set max block size to smaller instead then by say 15kb.... though the chance of having a full sized moronic 8MB block is pretty slim.
|
|
|
|
WBF1
|
 |
January 12, 2018, 03:42:04 PM |
|
OK will do.
If/when I ever get a donation or find a block I'll send something your way too.
|
|
|
|
WBF1
|
 |
January 19, 2018, 03:53:17 PM |
|
disregarding capacity issues, can 2 instances of ckpool (of course, one splns one "solo") run off a single bitcoind?
|
|
|
|
-ck
Moderator
Legendary
Offline
Activity: 2492
Merit: 1047
Ruu \o/
|
 |
January 19, 2018, 10:56:05 PM |
|
disregarding capacity issues, can 2 instances of ckpool (of course, one splns one "solo") run off a single bitcoind?
Sure, provided you name them differently so there's no conflict over sockets.
|
|
|
|
micax1
|
 |
January 22, 2018, 07:39:32 PM |
|
Is it possible to use this as a proxy medium for upstream job consolidation to a higher difficulty job? (for ex. getting 2 500000 difficulty jobs from pool, and return a 1000000 difficulty job for worker) Nicehash recently increased lowest difficulty for sha256 pools to 1000000, and as majority of pools I use do not support such difficulty at all, I am seeking for a solution to continue to mine.
Thank you.
|
|
|
|
1Dev
Newbie
Offline
Activity: 14
Merit: 0
|
 |
February 02, 2018, 10:56:33 AM |
|
Hi CK I have question about proxy in log I see this lines [2018-02-02 10:49:30.248] Select timed out in read_socket_line [2018-02-02 10:49:30.249] Got updated notify for proxy 1:0 [2018-02-02 10:49:30.249] Proxy 1:0 broadcast updated stratum notify without clean [2018-02-02 10:49:30.249] Got updated diff for proxy 1:0 [2018-02-02 10:49:30.281] Select timed out in read_socket_line [2018-02-02 10:49:30.281] Got updated notify for proxy 0:0 [2018-02-02 10:49:30.281] Aged 65 shares from share hashtable [2018-02-02 10:49:30.281] Proxy 0:0 broadcast updated stratum notify without clean [2018-02-02 10:49:30.281] Got updated diff for proxy 0:0
Is this issue read_socket_line timed out? & what is meaning of stratum notify without clean? Everything seems to be running fine just wanted to check.
|
1Dev - A lost soul drifting through the internet.
|
|
|
apxu
Member

Offline
Activity: 111
Merit: 10
|
 |
February 07, 2018, 06:22:00 PM |
|
What diff should I set for solo mining on my own node/pool? For example, this is current BitcoinCash stats: [root@localhost ~]# bitcoin-cli getmininginfo { "blocks": 516373, "currentblocksize": 2312, "currentblocktx": 18, "difficulty": 340523591249.2623, "blockprioritypercentage": 5, "errors": "", "networkhashps": 2.369436883479111e+18, "pooledtx": 18, "chain": "main" }
Assume, I am solo miner and all shares come from my workers. I do not need to count statistics of empty shares, I am paid only if the block is found. What digits should I set in ckpool.conf file for better pool performance? My current digits do not look optimal: "mindiff" : 1, "startdiff" : 2500000, "maxdiff" : 0,
|
|
|
|
-ck
Moderator
Legendary
Offline
Activity: 2492
Merit: 1047
Ruu \o/
|
 |
February 07, 2018, 08:02:15 PM |
|
What diff should I set for solo mining on my own node/pool?What digits should I set in ckpool.conf file for better pool performance? My current digits do not look optimal: "mindiff" : 1, "startdiff" : 2500000, "maxdiff" : 0, Doesn't matter. Tweaking these has zero effect on mining itself (except for maxdiff which you should never set), only when miners first connect for a few seconds which should only happen once with your own miners.
|
|
|
|
apxu
Member

Offline
Activity: 111
Merit: 10
|
 |
February 08, 2018, 11:12:49 AM |
|
Doesn't matter. Tweaking these has zero effect on mining itself (except for maxdiff which you should never set), only when miners first connect for a few seconds which should only happen once with your own miners. Should I increase startdiff in config? I think it must correlate to network difficulty somehow. 
|
|
|
|
-ck
Moderator
Legendary
Offline
Activity: 2492
Merit: 1047
Ruu \o/
|
 |
February 08, 2018, 11:26:16 AM |
|
Doesn't matter. Tweaking these has zero effect on mining itself (except for maxdiff which you should never set), only when miners first connect for a few seconds which should only happen once with your own miners. Should I increase startdiff in config? I think it must correlate to network difficulty somehow.  What don't you understand about "doesn't matter"?
|
|
|
|
WBF1
|
 |
March 05, 2018, 05:40:04 PM |
|
Have you given any thought to stratum with SSL to prevent MitM attacks? I noticed some altcoin pools enabling it... I guess this question would also apply to cgminer.
|
|
|
|
-ck
Moderator
Legendary
Offline
Activity: 2492
Merit: 1047
Ruu \o/
|
 |
March 05, 2018, 08:00:20 PM |
|
Have you given any thought to stratum with SSL to prevent MitM attacks? I noticed some altcoin pools enabling it... I guess this question would also apply to cgminer.
It's an unrealistic attack for the sake of a few mining packets of data.
|
|
|
|
singleuseacct
Newbie
Offline
Activity: 2
Merit: 0
|
 |
March 08, 2018, 04:34:02 AM |
|
I have been playing around with ckpool a bit in its proxy modes, and I'm a little stumped about the node passthrough feature. I have tried a countless number of configurations, but I can't manage to connect one ckpool instance in node passthrough mode to another in passthrough proxy or user proxy mode for the life of me. With the understanding that certain modes only work when talking to another ckpool instance, I've tried to build off up something like the below, but to no avail: { "proxy": [{ "url": "127.0.0.1:POOL", ... }], "serverurl": "127.0.0.1:1234", - AND/OR - "nodeserver": "127.0.0.1:1234", ... }
{ "btcd": [{ "url": "127.0.0.1:RPC", ... }], "serverurl": "0.0.0.0:END", "proxy": [{ "url": "127.0.0.1:1234", ... }], - AND/OR - "upstream": "127.0.0.1:1234", ... }
All my best efforts - of which there have been too many to enumerate here - typically result in an error on the passthrough node stating "Failed to receive line in node_stratum" or similar, with an accompanying "Failed initial node setup". The desired outcome of my experimentation is to have one instance running as a stratum endpoint with relay, connected to another that proxies to something like NOMP. I figure as useful as such a setup could be, I must just be missing something. Any pointers? -- Edit to add: I am somewhere around 12 commits behind master/HEAD, having been chased back a ways by a segfault at generator.c:2133 in newer versions.
|
|
|
|
-ck
Moderator
Legendary
Offline
Activity: 2492
Merit: 1047
Ruu \o/
|
 |
March 08, 2018, 08:30:12 AM |
|
I have been playing around with ckpool a bit in its proxy modes, and I'm a little stumped about the node passthrough feature. I have tried a countless number of configurations, but I can't manage to connect one ckpool instance in node passthrough mode to another in passthrough proxy or user proxy mode for the life of me.
With the understanding that certain modes only work when talking to another ckpool instance, I've tried to build off up something like the below, but to no avail:
Passthroughs can only talk to full ckpools, not proxies.
|
|
|
|
singleuseacct
Newbie
Offline
Activity: 2
Merit: 0
|
 |
March 08, 2018, 02:00:46 PM |
|
Passthroughs can only talk to full ckpools, not proxies.
Darn, I could imagine that sort of chaining ability would add great utility to ckpool for use in distributed/clustered deployments. Thanks for confirming though! Is there some other way one could achieve something like a "[user]proxy node mode"?Edit: on the millionth read, I think the true implications of the "passthrough node" operation just finally clicked.
|
|
|
|
|