-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminer.sh
43 lines (42 loc) · 1.68 KB
/
miner.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
echo ####################################################################################
echo Welcome to the most advanced PKT MINER script ever
echo
echo this script is still in development
echo
echo please report any bugs to the author
echo
echo note : do run the script as root user and inside a screen if doing in a vps/server
echo
echo First this script will compile the miner script
echo
echo secondly start the miner with you wallet address and desired threads count
echo
echo thirdly the script will get only the good rates and ke/s so say no to annoying error msgs and stuff
echo
echo thanks for reading lets make the difficult thing most easy for you !
echo #####################################################################################
echo .........
echo ...........
echo ..............
read -p "Enter your wallet address: " WALLET
read -p "How many Threads you want to give to the miner ?" THREAD
read -p "Enter the pool order you want to use : " POOL
read -p "Do you want to continue compiling the miner ? [y/n]" choice
if [ "${choice}" == "y" ]; then
echo "Compiling the miner..."
sudo apt install gcc git make curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/cjdelisle/packetcrypt_rs
cd packetcrypt_rs
~/.cargo/bin/cargo build --release
echo "completed compiling the miner !!"
read -p "Do you want to start the miner ? [y/n]" choice1
if [ "${choice1}" == "y" ]; then
echo "Starting the miner..."
./target/release/packetcrypt ann -p ${WALLET} ${POOL} -t${THREAD} | grep goodrate
else
echo "Exiting..."
fi
else
echo "Exiting..."
fi