Skip to content

Commit

Permalink
P2Pool mini
Browse files Browse the repository at this point in the history
  • Loading branch information
nahuhh authored Jun 26, 2022
1 parent d5884c6 commit 7d4d80f
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions src/installp2pool.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash
MONERO_CLI=~/monero-cli

echo "Installing p2pool"
if [ ! -e $MONERO_CLI/p2pool/build/p2pool ]
then
pkg install git nano build-essential cmake libuv libzmq libcurl -y
cd $MONERO_CLI
git clone --recursive https://github.com/SChernykh/p2pool
cd p2pool
mkdir build && cd build
cmake ..
make
cd
else
cd $MONERO_CLI/p2pool
git pull
cd build
cmake ..
make
cd
fi
# Input user wallet address
echo "
1. Copy your Main (4xxx..) address
2. Tap & Hold to paste
3. Press enter to confirm"
ADDRESS="USER INPUT"
read -p "Wallet Address: " ADDRESS

# Create start script
cat << EOF > Start\ P2Pool
#!/bin/bash
cd
./monero-cli/p2pool/build/p2pool \
--host 127.0.0.1 \
--rpc-port 18081 \
--stratum 0.0.0.0:3333 \
--mini \
--no-randomx \
--no-autodiff \
--wallet \
$ADDRESS
EOF

# Finish up
chmod +x Start\ P2Pool
mv Start\ P2Pool .shortcuts/
echo "P2Pool install finished"
sleep 1

0 comments on commit 7d4d80f

Please sign in to comment.