forked from CryptoGrampy/android-termux-monero-node
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |