UselethMiner

All discussions around cryptocurrency mining on macOS and Apple products. Discussion around the most popular crypto coins today including Bitcoin, Ethereum, and more. Read our getting started guide to understanding cryptocurrency, what you need to get started, and how to earn. What's your Apple Mac setup? Hackintosh? eGPU's? Share your setup and details here.
Post Reply
User avatar
macminergod
Site Admin
Posts: 204
Joined: Mon Feb 22, 2021 7:41 pm

UselethMiner

Post by macminergod »

UselethMiner is an ETHASH CPU & GPU miner


Download UselethMiner


Note: Install requires OpenSSL as prerequisite if you get an SSL error, see below.



Usage:

Code: Select all

/usr/local/uselethminer/uselethminer account.worker@server.com:3333


So using Unmineable:

Code: Select all

/usr/local/uselethminer/uselethminer ETH:ADDRESS.WORKER@ethash.unmineable.com:3333

Or for Mac Apple M1 Max / Ultra / ARM:

Code: Select all

/usr/local/uselethminer/uselethminer ETH:ETH:ADDRESS.WORKER@ethash.unmineable.com:3333 --flavor armv8af --size 64 -t 20 --flavor-gpu metal --size-gpu 128


The above parameters for MacOS M1 Ultra: Using CPU Mining Algo armv8af with 64 CPU Block Size, GPU for arm and 128 GPU Chung size.


speaks EthereumStratum/1.0.0, with automatic failover
comes with an aggregating (potentially encrypted) proxy you can also use for GPU/ASICs
runs on Linux (x86-64), Windows (x86-64) and macOS (x86-64 and arm64)
can auto-scale CPU usage based on machine load, so you can run it in the background
has JSON-RPC/TCP control
has a 1% devfee (for both miner and proxy)
may be profitable
may be useleth

UselethMiner Macos M1 Max Pro Benchmarks
UselethMiner Macos M1 Max Pro Benchmarks (49.93 KiB) Viewed 81835 times


UselethMiner Help Commands:

Code: Select all

--help               This help message
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58]   username[:password]@host:port[,...]
[2022-05-13 14:37:58]                        Implies -m, -h, -p, -u, -pw, comma separated
[2022-05-13 14:37:58]                        for failover
[2022-05-13 14:37:58]   host:port=username[:password]@host:port[,...]
[2022-05-13 14:37:58]                        Implies -px, -ph, -px, -h, -p, -u, -pw,
[2022-05-13 14:37:58]                        comma separated for failover
[2022-05-13 14:37:58]   host:port            Implies -c, -h, -p
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58]   -m  --mine           Mine
[2022-05-13 14:37:58]   -h  --host X         Host to connect to
[2022-05-13 14:37:58]   -p  --port X         Port to connect to; use negative to force
[2022-05-13 14:37:58]                        (weak) encryption, for UselethMiner proxy only!
[2022-05-13 14:37:58]   -u  --username X     Username for authorization
[2022-05-13 14:37:58]   -pw --password X     Password for authorization (default 123)
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58]   -px --proxy          Proxy
[2022-05-13 14:37:58]   -ph --proxyhost X    Address to bind to (default 0.0.0.0)
[2022-05-13 14:37:58]   -pp --proxyport X    Port to bind to (default 3333)
[2022-05-13 14:37:58]   -a  --aggr X         Downstream connections to aggregate per upstream
[2022-05-13 14:37:58]                        connection (1-256)
[2022-05-13 14:37:58]   -a  --aggr cpu,gpu   Split aggregation between CPU and non-CPU
[2022-05-13 14:37:58]                        connection pools (default 256,16)
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58]   -c  --console        RPC console
[2022-05-13 14:37:58]   -rh --rpchost X      Address to bind to (default 127.0.0.1)
[2022-05-13 14:37:58]   -rp --rpcport X      Port to bind to (default 3326, 0 to disable)
[2022-05-13 14:37:58]   -rw --rpcwait        Wait for RPC start command to mine
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58]   -t  --threads X      Threads to mine with (0-256, default 0 (cores/2))
[2022-05-13 14:37:58]   -t  --threads X,Y,Z  Vary threads between X and Y, trying to keep the
[2022-05-13 14:37:58]                        system below Z% CPU usage (X,Y: 0-256, Z:0-100)
[2022-05-13 14:37:58]   -s  --size X         CPU block size (4-1024, multiple of 4, default
[2022-05-13 14:37:58]                        32 for x86, 64 for arm)
[2022-05-13 14:37:58]   -sg --size-gpu X     GPU block size (4-1024, multiple of 4, default 64)
[2022-05-13 14:37:58]   -f  --flavor X       Use CPU optimization flavor (benchmarks by default)
[2022-05-13 14:37:58]                        x86: none, c, avx2_intel, avx2_amd, avx512
[2022-05-13 14:37:58]                        arm: none, c, armv8ah, armv8af
[2022-05-13 14:37:58]   -fg --flavor-gpu X   Use GPU optimization flavor (disabled by default)
[2022-05-13 14:37:58]                        x86: none
[2022-05-13 14:37:58]                        arm: none, metal
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58]   -l  --log            Enable logging to file
[2022-05-13 14:37:58]   -ln --log-name X     Log name (.log will be suffixed)
[2022-05-13 14:37:58]                        Implies --log (default useleth[miner/proxy])
[2022-05-13 14:37:58]   -ls --log-size X     Restart log after size reached
[2022-05-13 14:37:58]                        (default 1048576, 0 to grow indefinitely)
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58]   -hc --hide-console   (Windows) Hide console window
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58] If connecting to RPC, all unparsed parameters are sent as command
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58] Examples:
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58]   Mine:
[2022-05-13 14:37:58]     uselethminer ACCOUNT.WORKER@HOST:PORT -t 1,16,25
[2022-05-13 14:37:58]     uselethminer -m -h HOST -p PORT -u ACCOUNT.WORKER -t 4
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58]   Proxy:
[2022-05-13 14:37:58]     uselethminer PROXYHOST:PROXYPORT=ACCOUNT.WORKER@HOST:PORT
[2022-05-13 14:37:58]     uselethminer -p -ph PROXYHOST -pp PROXYPORT -h HOST -p PORT -u ACCOUNT.WORKER
[2022-05-13 14:37:58] 
[2022-05-13 14:37:58]   RPC Console:
[2022-05-13 14:37:58]     uselethminer HOST:PORT
[2022-05-13 14:37:58]     uselethminer HOST:PORT "shutdown"
[2022-05-13 14:37:58]     uselethminer -c -h HOST -p PORT


SSL Install Error UselethMiner


1. https://brew.sh/

2.

Code: Select all

brew install openssl
For Miners Rigs, macOS Hardware GPUs --> here.
User avatar
macminergod
Site Admin
Posts: 204
Joined: Mon Feb 22, 2021 7:41 pm

Re: UselethMiner

Post by macminergod »

Getting errors trying to run this on an M1 Air:


Update: Install Brew then OpenSSL


Code: Select all

Traceback (most recent call last):
  File "/usr/local/uselethminer/uselethminer.py", line 13, in <module>
  File "/usr/local/uselethminer/controller.py", line 10, in <module controller>
  File "/usr/local/uselethminer/stratum.py", line 6, in <module stratum>
  File "/usr/local/uselethminer/jsonrpc.py", line 8, in <module jsonrpc>
  File "/usr/local/uselethminer/jsonrpccrypt.py", line 8, in <module jsonrpccrypt>
  File "/usr/local/uselethminer/cryptography/hazmat/backends/__init__.py", line 9, in default_backend
  File "/usr/local/uselethminer/cryptography/hazmat/backends/openssl/__init__.py", line 6, in <module cryptography.hazmat.backends.openssl>
  File "/usr/local/uselethminer/cryptography/hazmat/backends/openssl/backend.py", line 64, in <module cryptography.hazmat.backends.openssl.backend>
  File "/usr/local/uselethminer/cryptography/hazmat/bindings/openssl/binding.py", line 14, in <module cryptography.hazmat.bindings.openssl.binding>
ImportError: dlopen(/usr/local/uselethminer/cryptography/hazmat/bindings/_openssl.so, 0x0002): Library not loaded: /opt/homebrew/Cellar/openssl@3/3.0.1/lib/libcrypto.3.dylib
  Referenced from: /usr/local/uselethminer/libssl.3.dylib
  Reason: tried: '/opt/homebrew/Cellar/openssl@3/3.0.1/lib/libcrypto.3.dylib' (no such file), '/usr/lib/libcrypto.3.dylib' (no such file)

Code: Select all

[2022-01-12 17:12:23] UselethMiner v0.11
[2022-01-12 17:12:23][SYSTEM] Apple M1, 8 threads, arm64, 16 GB RAM
[2022-01-12 17:12:23][CFETHASH] Starting benchmark
[2022-01-12 17:12:23][CFETHASH][2] Loading seedhashes
[2022-01-12 17:12:23][CFETHASH] Flavor: ARMv8A (Full)
[2022-01-12 17:12:23][CFETHASH][0] Loading seedhashes
[2022-01-12 17:12:23][CFETHASH][DAG][0] Loading DAG
[2022-01-12 17:12:23][CFETHASH][DAG][0] Loaded DAG (hugepages:no)
[2022-01-12 17:12:23][CFETHASH][0] Initializing threads
[2022-01-12 17:12:23][CFETHASH][0] Initialized threads
[2022-01-12 17:12:23][CFETHASH][0] Setting threads to 1
[2022-01-12 17:12:27][CFETHASH][0] Releasing threads
[2022-01-12 17:12:28][CFETHASH][0] Released threads
[2022-01-12 17:12:28][CFETHASH][DAG][0] Releasing DAG
[2022-01-12 17:12:28][CFETHASH][DAG][0] Released DAG
[2022-01-12 17:12:28][CFETHASH] Flavor: ARMv8A (Full) => 1007801 hash/sec/thread
[2022-01-12 17:12:28][CFETHASH] Flavor: ARMv8A (Half)
[2022-01-12 17:12:28][CFETHASH][1] Loading seedhashes
[2022-01-12 17:12:28][CFETHASH][DAG][1] Loading DAG
[2022-01-12 17:12:28][CFETHASH][DAG][1] Loaded DAG (hugepages:no)
[2022-01-12 17:12:28][CFETHASH][1] Initializing threads
[2022-01-12 17:12:28][CFETHASH][1] Initialized threads
[2022-01-12 17:12:28][CFETHASH][1] Setting threads to 1
[2022-01-12 17:12:32][CFETHASH][1] Releasing threads
[2022-01-12 17:12:32][CFETHASH][1] Released threads
[2022-01-12 17:12:32][CFETHASH][DAG][1] Releasing DAG
[2022-01-12 17:12:32][CFETHASH][DAG][1] Released DAG
[2022-01-12 17:12:32][CFETHASH] Flavor: ARMv8A (Half) => 1024715 hash/sec/thread
[2022-01-12 17:12:32][CFETHASH] Flavor: C
[2022-01-12 17:12:32][CFETHASH][DAG][2] Loading DAG
[2022-01-12 17:12:32][CFETHASH][DAG][2] Loaded DAG (hugepages:no)
[2022-01-12 17:12:32][CFETHASH][2] Initializing threads
[2022-01-12 17:12:32][CFETHASH][2] Initialized threads
[2022-01-12 17:12:32][CFETHASH][2] Setting threads to 1
[2022-01-12 17:12:36][CFETHASH][2] Releasing threads
[2022-01-12 17:12:36][CFETHASH][2] Released threads
[2022-01-12 17:12:36][CFETHASH][DAG][2] Releasing DAG
[2022-01-12 17:12:36][CFETHASH][DAG][2] Released DAG
For Miners Rigs, macOS Hardware GPUs --> here.
TR3B
Posts: 3
Joined: Fri Nov 12, 2021 10:27 pm

Re: UselethMiner

Post by TR3B »

Hey there! I'm super confused about uselethminer.

Commands only run when I use the full path from ~

Code: Select all

/usr/local/uselethminer/uselethminer COMMANDSHERE
But when I cd into that dir and run a command it does not... weird, anyways...

To see all available commands:

Code: Select all

/usr/local/uselethminer/uselethminer uselethminer
Fine but then running any configuration...

Code: Select all

/usr/local/uselethminer/uselethminer 0x07D91907b1F0F78591C2E3291ed87E465Bd1Eaa8.eth-us-east1@nanopool.org:9433 -f armv8af -s 88 -fg metal
It just idles...

Code: Select all

UselethMiner v0.23
[SYSTEM] Apple M1 Max, 10 threads, arm64, 64 GB RAM
[CFETHASH][CPU] Selecting: ARMv8A (Full) (from commandline)
[CFETHASH][GPU] Selecting: Metal (from commandline)
[CONTROLLER][RPC] Listening on 127.0.0.1:3326
It would be great if we could create a config file for uselethminer to make this easier to switch between pools?
Either way has anyone got this to work?
User avatar
macminergod
Site Admin
Posts: 204
Joined: Mon Feb 22, 2021 7:41 pm

Re: UselethMiner

Post by macminergod »

TR3B wrote: Fri Jan 21, 2022 4:41 pm Hey there! I'm super confused about uselethminer.

Commands only run when I use the full path from ~

Code: Select all

/usr/local/uselethminer/uselethminer COMMANDSHERE
But when I cd into that dir and run a command it does not... weird, anyways...

To see all available commands:

Code: Select all

/usr/local/uselethminer/uselethminer uselethminer
Fine but then running any configuration...

Code: Select all

/usr/local/uselethminer/uselethminer 0x07D91907b1F0F78591C2E3291ed87E465Bd1Eaa8.eth-us-east1@nanopool.org:9433 -f armv8af -s 88 -fg metal
It just idles...

Code: Select all

UselethMiner v0.23
[SYSTEM] Apple M1 Max, 10 threads, arm64, 64 GB RAM
[CFETHASH][CPU] Selecting: ARMv8A (Full) (from commandline)
[CFETHASH][GPU] Selecting: Metal (from commandline)
[CONTROLLER][RPC] Listening on 127.0.0.1:3326
It would be great if we could create a config file for uselethminer to make this easier to switch between pools?
Either way has anyone got this to work?

This works for me...

/usr/local/uselethminer/uselethminer ETH:ETH:ADDRESS.WORKER@ethash.unmineable.com:3333 --flavor armv8af --size 64 -t 20 --flavor-gpu metal --size-gpu 128
For Miners Rigs, macOS Hardware GPUs --> here.
User avatar
macminergod
Site Admin
Posts: 204
Joined: Mon Feb 22, 2021 7:41 pm

Re: UselethMiner

Post by macminergod »

For anyone getting this:


[CONTROLLER][BUG] Thread varying cannot be used if (also) GPU mining, it kills performance for an unknown reason


You're using the wrong parameter. Try:


--flavor armv8af --size 64 -t 20 --flavor-gpu metal --size-gpu 128
For Miners Rigs, macOS Hardware GPUs --> here.
Post Reply