Pages:
Author

Topic: CKPOOL - Open source pool/proxy/passthrough/redirector/library in c for Linux - page 4. (Read 124142 times)

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
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.
sr. member
Activity: 419
Merit: 250
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
legendary
Activity: 4088
Merit: 1631
Ruu \o/
sr. member
Activity: 419
Merit: 250
You mean with blockmaxweight right?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
@-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.
sr. member
Activity: 419
Merit: 250
@-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.
newbie
Activity: 1
Merit: 0
Hello,

Than it can be treated?
doindex() ? Huh

Quote
[Tue Dec 26 18:52:23.898781 2017] [:error] [pid 7865] [client ip:35162] PHP Fatal error:  Uncaught Error: Call to undefined function doindex() in /home/user/ckpool/pool/page.php:594\nStack trace:\n#0
/home/user/ckpool/pool/page_index.php(7): gopage(Array, NULL, 'doindex', 'index', Array, '', false)\n#1
/home/user/ckpool/pool/base.php(455): show_index(Array, 'index', Array, '', false)\n#2
/home/user/ckpool/pool/prime.php(49): showPage(Array, 'index', Array, '', false)\n#3
/home/user/ckpool/pool/prime.php(117): process(NULL, false, Array)\n#4
/home/user/ckpool/pool/prime.php(128): check()\n#5
/home/user/ckpool/html/index.php(2): include_once('/home/user/ck...')\n#6 {main}\n  thrown in /home/user/ckpool/pool/page.php on line 594

Thank.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/

That's correct, though there is the ckpool-splns fork which does all the apportioning of reward via coinbase generation without a database, as used on ckpool.org

Does the SPLNS fork give the block finder a bonus in the block like p2pool does?
No. It gives a small bonus for their next block found only. It can be a substantial bonus if they're a very small miner only.
newbie
Activity: 4
Merit: 0

That's correct, though there is the ckpool-splns fork which does all the apportioning of reward via coinbase generation without a database, as used on ckpool.org

Does the SPLNS fork give the block finder a bonus in the block like p2pool does?
sr. member
Activity: 419
Merit: 250
hi ck and kano

sorry to hear about the falling out.

without ckdb, there's no "easy way" to have ckpool set the generation address to the address of the user who finds it, right? And ckdb is still "as-is" in this repo?
That's correct, though there is the ckpool-splns fork which does all the apportioning of reward via coinbase generation without a database, as used on ckpool.org

is that fork public?

edit: nevermind i found it

so, ckpool-splns changes that control the coinbase generation are in stratifier? Is it all documented only in code? or also in a readme somewhere?
Only in code. The code was meant only for my pool but I promised the users to make all the code fully open for verification.

Got it. So if I compile and run the splns fork I can expect it to work like your splns pool @ ckpool.org?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
hi ck and kano

sorry to hear about the falling out.

without ckdb, there's no "easy way" to have ckpool set the generation address to the address of the user who finds it, right? And ckdb is still "as-is" in this repo?
That's correct, though there is the ckpool-splns fork which does all the apportioning of reward via coinbase generation without a database, as used on ckpool.org

is that fork public?

edit: nevermind i found it

so, ckpool-splns changes that control the coinbase generation are in stratifier? Is it all documented only in code? or also in a readme somewhere?
Only in code. The code was meant only for my pool but I promised the users to make all the code fully open for verification.
sr. member
Activity: 419
Merit: 250
hi ck and kano

sorry to hear about the falling out.

without ckdb, there's no "easy way" to have ckpool set the generation address to the address of the user who finds it, right? And ckdb is still "as-is" in this repo?
That's correct, though there is the ckpool-splns fork which does all the apportioning of reward via coinbase generation without a database, as used on ckpool.org

is that fork public?

edit: nevermind i found it

so, ckpool-splns changes that control the coinbase generation are in stratifier? Is it all documented only in code? or also in a readme somewhere?
sr. member
Activity: 419
Merit: 250
hi ck and kano

sorry to hear about the falling out.

without ckdb, there's no "easy way" to have ckpool set the generation address to the address of the user who finds it, right? And ckdb is still "as-is" in this repo?
That's correct, though there is the ckpool-splns fork which does all the apportioning of reward via coinbase generation without a database, as used on ckpool.org

is that fork public?

edit: nevermind i found it
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
hi ck and kano

sorry to hear about the falling out.

without ckdb, there's no "easy way" to have ckpool set the generation address to the address of the user who finds it, right? And ckdb is still "as-is" in this repo?
That's correct, though there is the ckpool-splns fork which does all the apportioning of reward via coinbase generation without a database, as used on ckpool.org
sr. member
Activity: 419
Merit: 250
hi ck and kano

sorry to hear about the falling out.

without ckdb, there's no "easy way" to have ckpool set the generation address to the address of the user who finds it, right? And ckdb is still "as-is" in this repo?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I'm hoping someone has already encountered this and has a quick answer.  Otherwise I'll do some digging this weekend.  I have set up the ckpool on just a clean local server.  If I'm reading the error correctly, it's the URL in the ckpool.conf file that's throwing the error when trying to bind to stratum port.  I also haven't seen any info on increasing the rcvbufsiz.  TIA.




Code:
[2017-12-08 12:52:01.802] ckpool generator starting
[2017-12-08 12:52:01.802] ckpool stratifier starting
[2017-12-08 12:52:01.802] ckpool connector starting
[2017-12-08 12:52:01.803] Failed to bind socket for 192.168.1.46:3333
[2017-12-08 12:52:01.803] Connector failed to bind to socket, retrying in 5s
[2017-12-08 12:52:01.962] Failed to increase rcvbufsiz to 532480, increase rmem_max or start ckpool privileged
[2017-12-08 12:52:02.215] ckpool generator ready
[2017-12-08 12:52:02.215] Connected to bitcoind: localhost:8332
[2017-12-08 12:52:02.287] ckpool stratifier ready[2017-12-08 12:52:06.803] Failed to bind socket for 192.168.1.46:3333
[2017-12-08 12:52:06.803] Connector failed to bind to socket, retrying in 5s
[2017-12-08 12:52:11.803] Failed to bind socket for 192.168.1.46:3333
[2017-12-08 12:52:11.803] Connector failed to bind to socket, retrying in 5s
Assuming you have the correct IP address and you're not trying to bind to a privileged port, usually that means something else is bound to the port already. The rcvbufsiz message tells you what you need to change in your linux config (sysctl.conf). If you're only going to be using ckpool locally it is not needed.
newbie
Activity: 10
Merit: 0
I'm hoping someone has already encountered this and has a quick answer.  Otherwise I'll do some digging this weekend.  I have set up the ckpool on just a clean local server.  If I'm reading the error correctly, it's the URL in the ckpool.conf file that's throwing the error when trying to bind to stratum port.  I also haven't seen any info on increasing the rcvbufsiz.  TIA.




[2017-12-08 12:52:01.802] ckpool generator starting
[2017-12-08 12:52:01.802] ckpool stratifier starting
[2017-12-08 12:52:01.802] ckpool connector starting
[2017-12-08 12:52:01.803] Failed to bind socket for 192.168.1.46:3333
[2017-12-08 12:52:01.803] Connector failed to bind to socket, retrying in 5s
[2017-12-08 12:52:01.962] Failed to increase rcvbufsiz to 532480, increase rmem_max or start ckpool privileged
[2017-12-08 12:52:02.215] ckpool generator ready
[2017-12-08 12:52:02.215] Connected to bitcoind: localhost:8332
[2017-12-08 12:52:02.287] ckpool stratifier ready[2017-12-08 12:52:06.803] Failed to bind socket for 192.168.1.46:3333
[2017-12-08 12:52:06.803] Connector failed to bind to socket, retrying in 5s
[2017-12-08 12:52:11.803] Failed to bind socket for 192.168.1.46:3333
[2017-12-08 12:52:11.803] Connector failed to bind to socket, retrying in 5s
full member
Activity: 213
Merit: 101
Interestingly, it may actually have been working fine. I got similar errors on 64-bit as well. Issue seemed to be hangups with bitcoind. Adding more RAM and setting bitcoind to properly use the notifier seems to made it all work a lot smoother. Still running it on 64-bit.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
can I mine with nicehash on here?
This is the ckpool SOFTWARE thread. You want the ckpool.org or solo.ckpool.org mining pool thread and the answer is yes.
member
Activity: 123
Merit: 17
can I mine with nicehash on here?
Pages:
Jump to: