Why Nostr? What is Njump?
2023-04-17 16:11:30

Fred_zaD on Nostr: Hello! Petit amusement du jour avec une machine X86_64, ubuntu 22.04, cpuminer-opt et ...

Hello!
Petit amusement du jour avec une machine X86_64, ubuntu 22.04, cpuminer-opt et #Umbrel.
Solo mining BTC lottery :-)

Tuto compilation:
https://github.com/JayDDee/cpuminer-opt/wiki/Compiling-from-source
En gros pour ma machine
$ sudo apt update -y
$ sudo apt install -y build-essential automake libssl-dev libcurl4-openssl-dev libjansson-dev libgmp-dev zlib1g-dev git
$ git clone https://github.com/JayDDee/cpuminer-opt.git
$ cd ./cpuminer-opt/
$ ./build.sh
$ CFLAGS="-O3 -march=znver3 -mavx512f -mavx512dq -mavx512bw -mavx512vl -Wall" ./configure --with-curl
$ make -j 8

Exemple de commande:
./cpuminer -a sha256d -o http://127.0.0.1:8332 --no-longpoll --hash-meter -u umbrel -p "Bitcoin Core RPC local Password" --coinbase-addr="adresse BTC" -t4

plus d'options ./cpuminer --help
comme "-t4" pour limiter le nombre de core/thread à 4/8, et diminuer un peu la consommation et la t°

Ensuite
Beaucoup de patience ...
Miner TTF @ 20.98 Mh/s 310942600y195d, Net TTF @ 377.47 Eh/s 9m04s
Ou beaucoup de chance ;-) ...

Commentaires et idées bienvenues :-)
#nostrfr
Author Public Key
npub1h0a28envnl4cusyjkhp4qh79n9lf4p3zjaag2grxvnskqm9xrnasxfq3ht