From ecdbd18edfdf2662cf428b03fbe50f3aa53ff701 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 2 Feb 2024 14:27:08 +0300 Subject: [PATCH] Add tonapi --- send_universal.js | 2 +- send_universal.ts | 2 +- start_tonapi.bat | 8 ++++++++ start_tonapi_100.bat | 8 ++++++++ start_tonapi_100.sh | 8 ++++++++ start_tonapi_1000.bat | 8 ++++++++ start_tonapi_1000.sh | 8 ++++++++ 7 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 start_tonapi.bat create mode 100644 start_tonapi_100.bat create mode 100644 start_tonapi_100.sh create mode 100644 start_tonapi_1000.bat create mode 100644 start_tonapi_1000.sh diff --git a/send_universal.js b/send_universal.js index 41713bc..5d373c2 100644 --- a/send_universal.js +++ b/send_universal.js @@ -59,7 +59,7 @@ if (args['--givers']) { } } else { - console.log('Using givers 10 000'); + console.log('Using givers 1 000'); } let bin = '.\\pow-miner-cuda.exe'; if (args['--bin']) { diff --git a/send_universal.ts b/send_universal.ts index 84c115c..257a955 100644 --- a/send_universal.ts +++ b/send_universal.ts @@ -52,7 +52,7 @@ if (args['--givers']) { break } } else { - console.log('Using givers 10 000') + console.log('Using givers 1 000') } let bin = '.\\pow-miner-cuda.exe' diff --git a/start_tonapi.bat b/start_tonapi.bat new file mode 100644 index 0000000..40d02a7 --- /dev/null +++ b/start_tonapi.bat @@ -0,0 +1,8 @@ + +call ".\npm_install.bat" + +:_minerstart +node send_universal.js --api tonapi +goto _minerstart + +pause \ No newline at end of file diff --git a/start_tonapi_100.bat b/start_tonapi_100.bat new file mode 100644 index 0000000..37fb42a --- /dev/null +++ b/start_tonapi_100.bat @@ -0,0 +1,8 @@ + +call ".\npm_install.bat" + +:_minerstart +node send_universal.js --api tonapi --givers 100 +goto _minerstart + +pause \ No newline at end of file diff --git a/start_tonapi_100.sh b/start_tonapi_100.sh new file mode 100644 index 0000000..f479660 --- /dev/null +++ b/start_tonapi_100.sh @@ -0,0 +1,8 @@ +#!/bin/bash +npm install + + +while true; do + node send_universal.js --api tonapi --bin ./pow-miner-cuda --givers 100 + sleep 1; +done; diff --git a/start_tonapi_1000.bat b/start_tonapi_1000.bat new file mode 100644 index 0000000..db4d5aa --- /dev/null +++ b/start_tonapi_1000.bat @@ -0,0 +1,8 @@ + +call ".\npm_install.bat" + +:_minerstart +node send_universal.js --api tonapi --givers 1000 +goto _minerstart + +pause \ No newline at end of file diff --git a/start_tonapi_1000.sh b/start_tonapi_1000.sh new file mode 100644 index 0000000..2b57b0f --- /dev/null +++ b/start_tonapi_1000.sh @@ -0,0 +1,8 @@ +#!/bin/bash +npm install + + +while true; do + node send_universal.js --api tonapi --bin ./pow-miner-cuda --givers 1000 + sleep 1; +done;