Public Pool on a PC?

I’m trying to help a new miner coming online. He has a PC and has Knots installed and running. Can he install Public Pool on a PC?

Yes, this should be possible (I’ll test it out when I have some free time). Benjamin Wilson’s project here has an EXE installer, so it would be simplest to set up on a Windows PC. Here is the link to the latest release.

3 Likes

Hello gentlemen,

How would one go about installing Public Pool on a machine running iOS, if that is possible?

Sin, welcome sir.

I didn’t realize that you were using an iOS operating system when I asked Paul about this as I thought you were running a PC. A huge overlook on my part. I don’t know if it’s even possible but @paul might have a better idea than I. My first though is it’s not possible but I guess will find out together eh?

iOS is fundamentally not very suitable for this type of application for a couple of reasons:

  1. The apps you can install are tightly controlled by Apple (anything custom either requires jailbreaking or a development setup)
  2. As a mobile operating system, iOS aggressively suspends background processes to save power. Any application that is not intentionally designed with this in mind will fare poorly.

That said, it is a really interesting challenge, so I thought I would see if I could find some way to tackle it. Note that this is purely speculation (there are likely gotcha’s and extra steps missing here), but if you are the adventuresome type, something like this might work:

Update the settings to make sure the screen remains on (process suspensions tend to happen when the screen turns off to save power).

Install iSH Shell from the Apple Store

Build Public Pool from the iSH shell:

apk add git nodejs npm
git clone https://github.com/benjamin-wilson/public-pool.git
cd public-pool
cp .env.example .env && vi .env   # fill in RPC + address
npm install
npm run build
node dist/main.js

The last step that I’m not sure on is ports. iOS may block iSH Shell from binding to port 3333, which would kill the whole idea (unless there are settings in the operating system for port forwarding – I’m not that familiar with iOS TBH).

Realistically, though, you should probably set up Public Pool on another device with a non-mobile operating system (Windows, Mac, or Linux). If you don’t have another device, then you could look into getting a cheap refurbished device (the Lenovo ThinkCentre Tiny PCs are quite affordable – you can easily find them in the range of $70 - $80).