Skip to content

Commit

Permalink
Add tonapi
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueCarry committed Feb 2, 2024
1 parent 980c12e commit ecdbd18
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion send_universal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand Down
2 changes: 1 addition & 1 deletion send_universal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
8 changes: 8 additions & 0 deletions start_tonapi.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

call ".\npm_install.bat"

:_minerstart
node send_universal.js --api tonapi
goto _minerstart

pause
8 changes: 8 additions & 0 deletions start_tonapi_100.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

call ".\npm_install.bat"

:_minerstart
node send_universal.js --api tonapi --givers 100
goto _minerstart

pause
8 changes: 8 additions & 0 deletions start_tonapi_100.sh
Original file line number Diff line number Diff line change
@@ -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;
8 changes: 8 additions & 0 deletions start_tonapi_1000.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

call ".\npm_install.bat"

:_minerstart
node send_universal.js --api tonapi --givers 1000
goto _minerstart

pause
8 changes: 8 additions & 0 deletions start_tonapi_1000.sh
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit ecdbd18

Please sign in to comment.