From 0711ef4b75eabf0d977ca8d7bd116fc9fa55eb25 Mon Sep 17 00:00:00 2001 From: wisfern Date: Mon, 8 Apr 2024 15:53:30 +0800 Subject: [PATCH] add engine key --- enginekey/key.json | 1 + rewards.sh | 2 +- run.sh | 14 +++++++------- 3 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 enginekey/key.json diff --git a/enginekey/key.json b/enginekey/key.json new file mode 100644 index 0000000..1b77887 --- /dev/null +++ b/enginekey/key.json @@ -0,0 +1 @@ +[202,42,231,227,28,109,127,206,92,222,227,129,78,147,86,248,75,153,242,14,212,55,38,67,61,202,66,132,157,40,222,209,255,202,124,44,201,105,118,106,23,254,72,214,53,109,224,187,149,46,167,119,223,227,151,240,184,75,30,22,164,223,156,237] \ No newline at end of file diff --git a/rewards.sh b/rewards.sh index ab3ad36..0aba133 100644 --- a/rewards.sh +++ b/rewards.sh @@ -5,7 +5,7 @@ rpc=https://api.mainnet-beta.solana.com total_rewards=0 -files=$(find . -maxdepth 2 -type f -name "*.json") +files=$(find key -maxdepth 2 -type f -name "*.json") for keyfile in $files; do rewards=$(ore --rpc $rpc --keypair $keyfile rewards 2>/dev/null | sed 's/ ORE//') diff --git a/run.sh b/run.sh index 8b8e0fa..92ba0b3 100644 --- a/run.sh +++ b/run.sh @@ -7,17 +7,17 @@ rpcurls=( "https://silent-tiniest-diamond.solana-mainnet.quiknode.pro/fcef276a3d99aa044e9d7d7193aced24563de630/" "https://few-billowing-liquid.solana-mainnet.quiknode.pro/85c2480a4641a74c262b93f9a2e4385f9fdd4ab3/" "https://withered-still-borough.solana-mainnet.quiknode.pro/6568815b3dbf509bb2689d6fba5dd973a7c8cada/" - "https://mainnet.helius-rpc.com/?api-key=fa8414c7-043e-4888-922a-344a2d413ec8" - "https://solana-mainnet.core.chainstack.com/b366b2ab269b22f4b6dd521c59079618" - "https://linguistic-dulcea-fast-mainnet.helius-rpc.com" - "https://cold-hanni-fast-mainnet.helius-rpc.com" - "https://api.mainnet-beta.solana.com" + #"https://mainnet.helius-rpc.com/?api-key=fa8414c7-043e-4888-922a-344a2d413ec8" + #"https://solana-mainnet.core.chainstack.com/b366b2ab269b22f4b6dd521c59079618" + #"https://linguistic-dulcea-fast-mainnet.helius-rpc.com" + #"https://cold-hanni-fast-mainnet.helius-rpc.com" + #"https://api.mainnet-beta.solana.com" ) rpcurls_str=$(IFS=, ; echo "${rpcurls[*]}") export RPCURLS_STR=$rpcurls_str -files=$(find . -maxdepth 2 -type f -name "*.json") +files=$(find key -maxdepth 2 -type f -name "*.json") for keypair in $files; do # 随机选择一个RPC URL @@ -32,7 +32,7 @@ do index=\$((RANDOM % \${#rpcurls[@]})) rpc=\${rpcurls[\$index]} echo \"Starting indefinite ore mining iteration with $keypair and rpc \$rpc ....\" - nice -n 2 ./ore --rpc \$rpc --keypair $keypair --priority-fee 20000000 mine --threads 2 + nice -n 2 ./ore --rpc \$rpc --keypair $keypair --priority-fee 100 mine --threads 2 #ore --rpc \$rpc --keypair $keypair --priority-fee 1000000 mine --threads 16 & #sleep 5 #ore --rpc \$rpc --keypair $keypair --priority-fee 1000000 mine --threads 16 &