From 4415896dfcb67c1c3075194a2769692f160d0f96 Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Tue, 7 Sep 2021 18:57:50 +0200 Subject: [PATCH 01/14] dero gold config file --- config_examples/dego.json | 170 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 config_examples/dego.json diff --git a/config_examples/dego.json b/config_examples/dego.json new file mode 100644 index 000000000..ec70d0ec2 --- /dev/null +++ b/config_examples/dego.json @@ -0,0 +1,170 @@ +{ + "coin": "derogold", + "symbol": "DEGO", + "coinUnits": 100, + "coinDifficultyTarget": 300, + "logging": { + "files": { + "level": "info", + "directory": "logs", + "flushInterval": 5 + }, + "console": { + "level": "info", + "colors": true + } + }, + "poolServer": { + "enabled": true, + "clusterForks": "auto", + "poolAddress": "", + "blockRefreshInterval": 1000, + "minerTimeout": 3600, + "ports": [ + { + "port": 5420, + "difficulty": 10000, + "desc": "Standard hardware" + } +], + "varDiff": { + "minDiff": 100, + "maxDiff": 500000, + "targetTime": 10, + "retargetTime": 30, + "variancePercent": 30, + "maxJump": 100 + }, + "fixedDiff": { + "enabled": true, + "addressSeparator": "." + }, + "shareTrust": { + "enabled": false, + "maxTrustPercent": 50, + "probabilityStepPercent": 1, + "probabilityStepWindow": 15, + "minUntrustedShares": 50, + "minUntrustedSeconds": 300, + "maxTrustedDifficulty": 100000, + "maxPenaltyMultiplier": 100, + "minPenaltyMultiplier": 2, + "penaltyMultiplierStep": 1, + "penaltyStepUpWindow": 30, + "penaltyStepDownWindow": 120, + "maxShareWindow": 300, + "maxIPCRate": 15, + "maxAge": 604800 + }, + "banning": { + "enabled": true, + "time": 600, + "invalidPercent": 10, + "checkThreshold": 15 + }, + "slushMining": { + "enabled": false, + "weight": 120, + "lastBlockCheckRate": 1 + } + }, + "payments": { + "enabled": true, + "allowPaymentId": true, + "interval": 120, + "maxAddresses": 10, + "transferFee": 2200000, + "minPayment": 1000000000, + "minPaymentIdPayment": 1000000000, + "maxTransactionAmount": 0, + "denomination": 100 + }, + "blockUnlocker": { + "enabled": true, + "interval": 300, + "depth": 8, + "poolFee": 1, + "devDonation": 0, + "coreDevDonation": 0, + "extraFeaturesDevDonation": 0 + }, + "api": { + "enabled": true, + "hashrateWindow": 600, + "updateInterval": 5, + "host": "127.0.0.1", + "port": 8117, + "blocks": 30, + "payments": 30, + "password": "" + }, + "daemon": { + "host": "", + "port": + }, + "wallet": { + "host": "", + "port": , + "password": "" + }, + "redis": { + "host": "127.0.0.1", + "port": 6379 + }, + "monitoring": { + "daemon": { + "checkInterval": 60, + "rpcMethod": "getblockcount" + }, + "wallet": { + "checkInterval": 60, + "rpcMethod": "getBalance" + } + }, + "charts": { + "pool": { + "hashrate": { + "enabled": true, + "updateInterval": 60, + "stepInterval": 1800, + "maximumPeriod": 86400 + }, + "workers": { + "enabled": true, + "updateInterval": 60, + "stepInterval": 1800, + "maximumPeriod": 86400 + }, + "difficulty": { + "enabled": true, + "updateInterval": 1800, + "stepInterval": 10800, + "maximumPeriod": 604800 + }, + "price": { + "enabled": true, + "updateInterval": 1800, + "stepInterval": 10800, + "maximumPeriod": 604800 + }, + "profit": { + "enabled": true, + "updateInterval": 1800, + "stepInterval": 10800, + "maximumPeriod": 604800 + } + }, + "user": { + "hashrate": { + "enabled": true, + "updateInterval": 180, + "stepInterval": 1800, + "maximumPeriod": 86400 + }, + "payments": { + "enabled": true + } + } + } +} + From 1a9a677b69fffc36e8fa2c4c68631d002cecef07 Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Tue, 7 Sep 2021 19:01:07 +0200 Subject: [PATCH 02/14] Update dego.json --- config_examples/dego.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config_examples/dego.json b/config_examples/dego.json index ec70d0ec2..0a9f84a10 100644 --- a/config_examples/dego.json +++ b/config_examples/dego.json @@ -1,4 +1,6 @@ -{ +{ + "poolHost": "your.pool.host", + "coin": "derogold", "symbol": "DEGO", "coinUnits": 100, From 6ef79bd3ad6560179f99272c852285e9126a325c Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Tue, 7 Sep 2021 20:29:13 +0200 Subject: [PATCH 03/14] Update graft.json --- config_examples/graft.json | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/config_examples/graft.json b/config_examples/graft.json index 78c1f1bf2..91777aff8 100644 --- a/config_examples/graft.json +++ b/config_examples/graft.json @@ -6,14 +6,16 @@ "coinUnits": 10000000000, "coinDecimalPlaces": 4, "coinDifficultyTarget": 120, - "blockchainExplorer": "http://blockexplorer.arqma.com/block/{id}", - "transactionExplorer": "http://blockexplorer.arqma.com/tx/{id}", + "blockchainExplorer": "https://blockexplorer.graft.network/block/{id}", + "transactionExplorer": "https://blockexplorer.graft.network/tx/{id}", "daemonType": "default", - "cnAlgorithm": "cryptonight", - "cnVariant": 15, + "cnAlgorithm": "randomx", + "isRandomX": true, + "includeHeight": true, + "cnVariant": 20, "cnBlobType": 0, - "logging": { + "logging": { "files": { "level": "info", "directory": "logs", @@ -108,7 +110,6 @@ "lastBlockCheckRate": 1 } }, - "payments": { "enabled": true, "interval": 1800, @@ -123,7 +124,6 @@ "maxTransactionAmount": 0, "denomination": 1000000000 }, - "blockUnlocker": { "enabled": true, "interval": 30, @@ -132,7 +132,6 @@ "devDonation": 0.2, "networkFee": 0.0 }, - "api": { "enabled": true, "hashrateWindow": 600, @@ -149,17 +148,14 @@ "sslCA": "./chain.pem", "trustProxyIP": true }, - "daemon": { "host": "127.0.0.1", "port": 18981 }, - "wallet": { "host": "127.0.0.1", "port": 18982 }, - "redis": { "host": "127.0.0.1", "port": 6379, @@ -167,7 +163,6 @@ "db": 0, "cleanupInterval": 15 }, - "notifications": { "emailTemplate": "email_templates/default.txt", "emailSubject": { @@ -200,7 +195,6 @@ "payment": "A payment of _%AMOUNT%_ has been sent." } }, - "email": { "enabled": false, "fromAddress": "your@email.com", @@ -225,7 +219,6 @@ "domain": "mg.yourdomain" } }, - "telegram": { "enabled": false, "botName": "", @@ -242,7 +235,6 @@ "blocks": "/blocks" } }, - "monitoring": { "daemon": { "checkInterval": 60, @@ -253,12 +245,10 @@ "rpcMethod": "getbalance" } }, - "prices": { "source": "tradeogre", "currency": "USD" }, - "charts": { "pool": { "hashrate": { From 3d69673d7f118e96bbcd9570be46ef3a3de2ca3d Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Tue, 7 Sep 2021 20:34:03 +0200 Subject: [PATCH 04/14] Update croat.json --- config_examples/croat.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/config_examples/croat.json b/config_examples/croat.json index 9b10f2b98..b7b604a9f 100644 --- a/config_examples/croat.json +++ b/config_examples/croat.json @@ -6,13 +6,14 @@ "coinUnits": 100000000000, "coinDecimalPlaces": 4, "coinDifficultyTarget": 60, - "blockchainExplorer": "http://blockexplorer.arqma.com/block/{id}", - "transactionExplorer": "http://blockexplorer.arqma.com/tx/{id}", + "blockchainExplorer": "http://explorer.croat.community/?hash={id}#blockchain_block", + "transactionExplorer": "http://explorer.croat.community/?hash={id}#blockchain_transaction", "daemonType": "default", "cnAlgorithm": "cryptonight", "cnVariant": 0, - "cnBlobType": 2, - + "cnBlobType": 0, + "offset": 3, + "logging": { "files": { "level": "info", @@ -67,7 +68,7 @@ "port": 9999, "difficulty": 20000, "desc": "SSL connection", - "ssl": true + "ssl": false } ], "varDiff": { @@ -86,7 +87,7 @@ }, "fixedDiff": { "enabled": true, - "addressSeparator": "." + "addressSeparator": "+" }, "shareTrust": { "enabled": true, From 5caca129af298a82a4e0ffa710ac836a13f7ce9e Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Tue, 7 Sep 2021 20:35:40 +0200 Subject: [PATCH 05/14] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d639b0fb6..86a111f0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Why node:8 and not node:10? Because (a) v8 is LTS, so more likely to be stable, and (b) "npm update" on node:10 breaks on Docker on Linux (but not on OSX, oddly) -FROM node:8-slim +FROM node:10.24.0-slim RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs git libboost-all-dev libssl-dev make gcc g++ libsodium-dev\ From 621d7d63447340b856ce542858504051408aee78 Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Tue, 7 Sep 2021 20:37:15 +0200 Subject: [PATCH 06/14] Update pool.js --- lib/pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pool.js b/lib/pool.js index 4f1a97b28..cb1d10ace 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -395,7 +395,7 @@ function Miner (rewardType, childRewardType, id, childPoolIndex, login, pass, ip this.noRetarget = noRetarget; this.difficulty = startingDiff; this.validJobs = []; - this.workerName2 = pass; + this.workerName = pass; // Vardiff related variables this.shareTimeRing = utils.ringBuffer(16); From 7cd336b57b59ec2f34e16810697a2eb28a11c097 Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Tue, 7 Sep 2021 20:39:10 +0200 Subject: [PATCH 07/14] Update getting_started.html --- website_example/pages/getting_started.html | 57 ++++++++++++++-------- 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/website_example/pages/getting_started.html b/website_example/pages/getting_started.html index 3c9a04e5c..9bf998fa8 100644 --- a/website_example/pages/getting_started.html +++ b/website_example/pages/getting_started.html @@ -182,8 +182,8 @@

Mining Applications

"pass": "YOUR_WORKER_NAME", "keepalive": true, "nicehash": false, - "variant": "trtl", - "algo": "cryptonight-pico/trtl" + "variant": "!msr", + "algo": "" } ], @@ -210,8 +210,8 @@

Mining Applications

"pass": "YOUR_WORKER_NAME" "keepalive": true, "nicehash": false, - "variant": "trtl", - "algo": "cryptonight-pico/trtl" + "variant": "!msr", + "algo": "" } ], @@ -238,8 +238,8 @@

Mining Applications

"pass": "YOUR_WORKER_NAME" "keepalive": true, "nicehash": false - "variant": "trtl", - "algo": "cryptonight-pico/trtl" + "variant": "!msr", + "algo": "" } ], @@ -266,8 +266,8 @@

Mining Applications

"pass": "YOUR_WORKER_NAME", "keepalive": true, "nicehash": false, - "algo": "cryptonight-ultralite", - "pow-variant": "2" + "algo": "", + "pow-variant": "!msr" }, ], @@ -276,22 +276,19 @@

Mining Applications

- + + + + @@ -347,6 +344,7 @@

Mining Applications

algorithm = ''; xmrstakAlgo = ''; + xmrigAlgo = ''; if (cnAlgorithm == "argon2") { if (cnVariant === 1) @@ -358,12 +356,15 @@

Mining Applications

algorithm = 'CryptoNight DefyX'; else if (cnVariant === 2) algorithm = 'RandomARQ'; + xmrigAlgo = 'rx/arq'; else if (cnVariant === 17) { algorithm = 'RandomWOW'; xmrstakAlgo = 'randomX_wow'; + xmrigAlgo = 'rx/wow'; } else if (cnVariant === 18) { algorithm = 'RandomXL'; xmrstakAlgo = 'randomX_loki'; + xmrigAlgo = 'rx/loki'; } else { algorithm = 'RandomX'; xmrstakAlgo = 'randomX'; @@ -372,31 +373,39 @@

Mining Applications

if (cnVariant === 1) { algorithm = 'CryptoNight Lite v7'; xmrstakAlgo = 'cryptonight_lite_v7'; + xmrigAlgo = 'cn-lite/0'; } else { algorithm = 'CryptoNight Lite'; xmrstakAlgo = 'cryptonight_lite'; + xmrigAlgo = 'cn-lite/1'; } } else if (cnAlgorithm == "cryptonight_pico") { algorithm = 'CryptoNight Turtle'; xmrstakAlgo = 'cryptonight_turtle'; + xmrigAlgo = 'cn-pico'; } else if (cnAlgorithm == "cryptonight_heavy") { if (cnVariant === 1) { algorithm = 'CryptoNight Haven'; xmrstakAlgo = 'cryptonight_haven'; + xmrigAlgo = 'cn-heavy/xhv'; } else if (cnVariant === 2) { algorithm = 'CryptoNight Saber'; xmrstakAlgo = 'cryptonight_bittube2'; + xmrigAlgo = 'cn-heavy/tube'; } else { algorithm = 'CryptoNight Heavy'; xmrstakAlgo = 'cryptonight_heavy'; + xmrigAlgo = 'cn-heavy/0'; } } else { if (cnVariant === 1) { algorithm = 'CryptoNight v7'; xmrstakAlgo = 'cryptonight_v7'; + xmrigAlgo = 'cn/1'; } else if (cnVariant === 4) { algorithm = 'CryptoNight Fast'; xmrstakAlgo = 'cryptonight_masari'; + xmrigAlgo = 'cn/fast'; } else if (cnVariant === 6) { algorithm = 'CryptoNight Alloy'; xmrstakAlgo = 'cryptonight_alloy'; @@ -415,23 +424,31 @@

Mining Applications

} else if (cnVariant === 13) { algorithm = 'CryptoNight R'; xmrstakAlgo = 'cryptonight_r'; + xmrigAlgo = 'cn/r'; } else if (cnVariant === 14) { algorithm = 'CryptoNight v8 ReverseWaltz'; xmrstakAlgo = 'cryptonight_v8_reversewaltz'; } else if (cnVariant === 15) { algorithm = 'CryptoNight Zelerius'; xmrstakAlgo = 'cryptonight_v8_zelerius'; + xmrigAlgo = 'cn/zls'; } else if (cnVariant === 16) { algorithm = 'CryptoNight v8 Double'; xmrstakAlgo = 'cryptonight_v8_double'; + xmrigAlgo = 'cn/double'; } else { algorithm = 'CryptoNight'; - xmrstakAlgo = 'cryptonight'; + xmrstakAlgo = 'cryptonight + xmrigAlgo = 'cn/2'; } } updateText('cnAlgorithm', algorithm); updateText('xmrstakAlgo', xmrstakAlgo); + updateText('xmrigAlgoCPU', xmrigAlgo); + updateText('xmrigAlgoAMD', xmrigAlgo); + updateText('xmrigAlgoNVIDIA', xmrigAlgo); + updateText('xmrigAlgoCC', xmrigAlgo); } }; From cb183ecdbc01fc6de4e136f9b500264fe2a941b9 Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Tue, 7 Sep 2021 21:29:26 +0200 Subject: [PATCH 08/14] Update getting_started.html --- website_example/pages/getting_started.html | 58 ++++++++-------------- 1 file changed, 20 insertions(+), 38 deletions(-) diff --git a/website_example/pages/getting_started.html b/website_example/pages/getting_started.html index 9bf998fa8..f0b58ae96 100644 --- a/website_example/pages/getting_started.html +++ b/website_example/pages/getting_started.html @@ -182,8 +182,8 @@

Mining Applications

"pass": "YOUR_WORKER_NAME", "keepalive": true, "nicehash": false, - "variant": "!msr", - "algo": "" + "variant": "trtl", + "algo": "cryptonight-pico/trtl" } ], @@ -210,8 +210,8 @@

Mining Applications

"pass": "YOUR_WORKER_NAME" "keepalive": true, "nicehash": false, - "variant": "!msr", - "algo": "" + "variant": "trtl", + "algo": "cryptonight-pico/trtl" } ], @@ -238,8 +238,8 @@

Mining Applications

"pass": "YOUR_WORKER_NAME" "keepalive": true, "nicehash": false - "variant": "!msr", - "algo": "" + "variant": "trtl", + "algo": "cryptonight-pico/trtl" } ], @@ -266,8 +266,8 @@

Mining Applications

"pass": "YOUR_WORKER_NAME", "keepalive": true, "nicehash": false, - "algo": "", - "pow-variant": "!msr" + "algo": "cryptonight-ultralite", + "pow-variant": "2" }, ], @@ -276,19 +276,22 @@

Mining Applications

- - - - + + + +
+
teamredminer.ext -a cnv8 trtle -o stratum+tcp//POOL_HOST:PORT -u "YOUR_WALLET_ADDRESS" -p "YOUR_WORKER_NAME" 
+
+ +
+ + @@ -344,7 +347,6 @@

Mining Applications

algorithm = ''; xmrstakAlgo = ''; - xmrigAlgo = ''; if (cnAlgorithm == "argon2") { if (cnVariant === 1) @@ -356,15 +358,12 @@

Mining Applications

algorithm = 'CryptoNight DefyX'; else if (cnVariant === 2) algorithm = 'RandomARQ'; - xmrigAlgo = 'rx/arq'; else if (cnVariant === 17) { algorithm = 'RandomWOW'; xmrstakAlgo = 'randomX_wow'; - xmrigAlgo = 'rx/wow'; } else if (cnVariant === 18) { algorithm = 'RandomXL'; xmrstakAlgo = 'randomX_loki'; - xmrigAlgo = 'rx/loki'; } else { algorithm = 'RandomX'; xmrstakAlgo = 'randomX'; @@ -373,39 +372,31 @@

Mining Applications

if (cnVariant === 1) { algorithm = 'CryptoNight Lite v7'; xmrstakAlgo = 'cryptonight_lite_v7'; - xmrigAlgo = 'cn-lite/0'; } else { algorithm = 'CryptoNight Lite'; xmrstakAlgo = 'cryptonight_lite'; - xmrigAlgo = 'cn-lite/1'; } } else if (cnAlgorithm == "cryptonight_pico") { algorithm = 'CryptoNight Turtle'; xmrstakAlgo = 'cryptonight_turtle'; - xmrigAlgo = 'cn-pico'; } else if (cnAlgorithm == "cryptonight_heavy") { if (cnVariant === 1) { algorithm = 'CryptoNight Haven'; xmrstakAlgo = 'cryptonight_haven'; - xmrigAlgo = 'cn-heavy/xhv'; } else if (cnVariant === 2) { algorithm = 'CryptoNight Saber'; xmrstakAlgo = 'cryptonight_bittube2'; - xmrigAlgo = 'cn-heavy/tube'; } else { algorithm = 'CryptoNight Heavy'; xmrstakAlgo = 'cryptonight_heavy'; - xmrigAlgo = 'cn-heavy/0'; } } else { if (cnVariant === 1) { algorithm = 'CryptoNight v7'; xmrstakAlgo = 'cryptonight_v7'; - xmrigAlgo = 'cn/1'; } else if (cnVariant === 4) { algorithm = 'CryptoNight Fast'; xmrstakAlgo = 'cryptonight_masari'; - xmrigAlgo = 'cn/fast'; } else if (cnVariant === 6) { algorithm = 'CryptoNight Alloy'; xmrstakAlgo = 'cryptonight_alloy'; @@ -424,31 +415,23 @@

Mining Applications

} else if (cnVariant === 13) { algorithm = 'CryptoNight R'; xmrstakAlgo = 'cryptonight_r'; - xmrigAlgo = 'cn/r'; } else if (cnVariant === 14) { algorithm = 'CryptoNight v8 ReverseWaltz'; xmrstakAlgo = 'cryptonight_v8_reversewaltz'; } else if (cnVariant === 15) { algorithm = 'CryptoNight Zelerius'; xmrstakAlgo = 'cryptonight_v8_zelerius'; - xmrigAlgo = 'cn/zls'; } else if (cnVariant === 16) { algorithm = 'CryptoNight v8 Double'; xmrstakAlgo = 'cryptonight_v8_double'; - xmrigAlgo = 'cn/double'; } else { algorithm = 'CryptoNight'; - xmrstakAlgo = 'cryptonight - xmrigAlgo = 'cn/2'; + xmrstakAlgo = 'cryptonight'; } } updateText('cnAlgorithm', algorithm); updateText('xmrstakAlgo', xmrstakAlgo); - updateText('xmrigAlgoCPU', xmrigAlgo); - updateText('xmrigAlgoAMD', xmrigAlgo); - updateText('xmrigAlgoNVIDIA', xmrigAlgo); - updateText('xmrigAlgoCC', xmrigAlgo); } }; @@ -486,4 +469,3 @@

Mining Applications

}); - From ed136093825e82384dadfc6d6aa032beaa67626f Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Tue, 7 Sep 2021 21:32:54 +0200 Subject: [PATCH 09/14] Create node.js.yml --- .github/workflows/node.js.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 000000000..ae3981240 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test From d2b6406b2798dd393e900b8b3883694a52df297d Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Tue, 7 Sep 2021 21:36:25 +0200 Subject: [PATCH 10/14] Delete node.js.yml --- .github/workflows/node.js.yml | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index ae3981240..000000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,31 +0,0 @@ -# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [12.x, 14.x, 16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test From 1af82eba992caf88ea626edbc4a33f80e629254a Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Tue, 7 Sep 2021 21:36:36 +0200 Subject: [PATCH 11/14] Update codeql-analysis.yml From fedfa293d85f94cf4af4bc586eaf594ef9187dde Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Mon, 13 Dec 2021 21:42:49 +0100 Subject: [PATCH 12/14] Add files via upload --- config_examples/phiblock.conf | 318 ++++++++++++++++++++++++++++++++++ 1 file changed, 318 insertions(+) create mode 100644 config_examples/phiblock.conf diff --git a/config_examples/phiblock.conf b/config_examples/phiblock.conf new file mode 100644 index 000000000..ed34b28ea --- /dev/null +++ b/config_examples/phiblock.conf @@ -0,0 +1,318 @@ +{ + "poolHost": "miner.phiblock.tech", + + "coin": "PhiBlock", + "symbol": "phi", + "coinUnits": 1000000000000, + "coinDecimalPlaces": 4, + "coinDifficultyTarget": 120, + "blockchainExplorer": "https://explorer.phiblock.tech/block/{id}", + "transactionExplorer": "https://explorer.phiblock.tech/tx/{id}", + "daemonType": "default", + "cnAlgorithm": "cryptonight", + "cnVariant": 14, + "cnBlobType": 0, + "includeHeight": false, + "isRandomX": false, + + "logging": { + "files": { + "level": "info", + "directory": "logs", + "flushInterval": 5 + }, + "console": { + "level": "info", + "colors": true + } + }, + "childPools": null, + "poolServer": { + "enabled": true, + "mergedMining": false, + "clusterForks": "auto", + "poolAddress": "", + "pubAddressPrefix": 23815, + "intAddressPrefix": 1902175, + "subAddressPrefix": 1511751, + "blockRefreshInterval": 1000, + "minerTimeout": 900, + "sslCert": "./cert.pem", + "sslKey": "./privkey.pem", + "sslCA": "./chain.pem", + "ports": [ + { + "port": 4001, + "difficulty": 5000, + "desc": "Low end hardware" + }, + { + "port": 4002, + "difficulty": 20000, + "desc": "Mid range hardware" + }, + { + "port": 4003, + "difficulty": 40000, + "desc": "High end hardware" + }, + { + "port": 4004, + "difficulty": 500000, + "desc": "Cloud-mining / NiceHash" + } + ], + "varDiff": { + "minDiff": 100, + "maxDiff": 100000000, + "targetTime": 40, + "retargetTime": 360, + "variancePercent": 30, + "maxJump": 100 + }, + "paymentId": { + "addressSeparator": "+", + "validation": false, + "validations": ["1,16", "64"], + "ban": true + }, + "fixedDiff": { + "enabled": true, + "addressSeparator": "." + }, + "shareTrust": { + "enabled": true, + "min": 10, + "stepDown": 3, + "threshold": 10, + "penalty": 30 + }, + "banning": { + "enabled": true, + "time": 600, + "invalidPercent": 25, + "checkThreshold": 30 + }, + "slushMining": { + "enabled": false, + "weight": 300, + "blockTime": 60, + "lastBlockCheckRate": 1 + } + }, + + "payments": { + "enabled": true, + "interval": 600, + "maxAddresses": 20, + "mixin": 7, + "priority": 0, + "transferFee": 1000000000, + "dynamicTransferFee": true, + "minerPayFee": true, + "minPayment": 1000000000000, + "maxPayment": 100000000000000, + "maxTransactionAmount": 100000000000000, + "denomination": 100000000000 + }, + + "blockUnlocker": { + "enabled": true, + "interval": 30, + "depth": 60, + "poolFee": 2, + "soloFee": 2, + "finderReward": 0.0, + "devDonation": 0.0, + "networkFee": 0.0, + "fixBlockHeightRPC": false + }, + + "api": { + "enabled": true, + "hashrateWindow": 600, + "updateInterval": 5, + "bindIp": "0.0.0.0", + "port": 8117, + "blocks": 30, + "payments": 30, + "password": "your_password", + "ssl": false, + "sslPort": 8119, + "sslCert": "./cert.pem", + "sslKey": "./privkey.pem", + "sslCA": "./chain.pem", + "trustProxyIP": true + }, + + "daemon": { + "host": "127.0.0.1", + "port": 18001 + }, + + "wallet": { + "host": "127.0.0.1", + "port": 18004 + }, + + "redis": { + "host": "127.0.0.1", + "port": 6379, + "auth": null, + "db": 0, + "cleanupInterval": 15 + }, + + "notifications": { + "emailTemplate": "email_templates/default.txt", + "emailSubject": { + "emailAdded": "Your email was registered", + "workerConnected": "Worker %WORKER_NAME% connected", + "workerTimeout": "Worker %WORKER_NAME% stopped hashing", + "workerBanned": "Worker %WORKER_NAME% banned", + "blockFound": "Block %HEIGHT% found !", + "blockUnlocked": "Block %HEIGHT% unlocked !", + "blockOrphaned": "Block %HEIGHT% orphaned !", + "payment": "We sent you a payment !" + }, + "emailMessage": { + "emailAdded": "Your email has been registered to receive pool notifications.", + "workerConnected": "Your worker %WORKER_NAME% for address %MINER% is now connected from ip %IP%.", + "workerTimeout": "Your worker %WORKER_NAME% for address %MINER% has stopped submitting hashes on %LAST_HASH%.", + "workerBanned": "Your worker %WORKER_NAME% for address %MINER% has been banned.", + "blockFound": "Block found at height %HEIGHT% by miner %MINER% on %TIME%. Waiting maturity.", + "blockUnlocked": "Block mined at height %HEIGHT% with %REWARD% and %EFFORT% effort on %TIME%.", + "blockOrphaned": "Block orphaned at height %HEIGHT% :(", + "payment": "A payment of %AMOUNT% has been sent to %ADDRESS% wallet." + }, + "telegramMessage": { + "workerConnected": "Your worker _%WORKER_NAME%_ for address _%MINER%_ is now connected from ip _%IP%_.", + "workerTimeout": "Your worker _%WORKER_NAME%_ for address _%MINER%_ has stopped submitting hashes on _%LAST_HASH%_.", + "workerBanned": "Your worker _%WORKER_NAME%_ for address _%MINER%_ has been banned.", + "blockFound": "*Block found at height* _%HEIGHT%_ *by miner* _%MINER%_*! Waiting maturity.*", + "blockUnlocked": "*Block mined at height* _%HEIGHT%_ *with* _%REWARD%_ *and* _%EFFORT%_ *effort on* _%TIME%_*.*", + "blockOrphaned": "*Block orphaned at height* _%HEIGHT%_ *:(*", + "payment": "A payment of _%AMOUNT%_ has been sent." + } + }, + + "email": { + "enabled": false, + "fromAddress": "your@email.com", + "transport": "sendmail", + "sendmail": { + "path": "/usr/sbin/sendmail" + }, + "smtp": { + "host": "smtp.example.com", + "port": 587, + "secure": false, + "auth": { + "user": "username", + "pass": "password" + }, + "tls": { + "rejectUnauthorized": false + } + }, + "mailgun": { + "key": "your-private-key", + "domain": "mg.yourdomain" + } + }, + + "telegram": { + "enabled": false, + "botName": "", + "token": "", + "channel": "", + "channelStats": { + "enabled": false, + "interval": 30 + }, + "botCommands": { + "stats": "/stats", + "report": "/report", + "notify": "/notify", + "blocks": "/blocks" + } + }, + + "monitoring": { + "daemon": { + "checkInterval": 60, + "rpcMethod": "getblockcount" + }, + "wallet": { + "checkInterval": 60, + "rpcMethod": "getbalance" + } + }, + + "prices": { + "source": "", + "currency": "USD" + }, + + "charts": { + "pool": { + "hashrate": { + "enabled": true, + "updateInterval": 60, + "stepInterval": 1800, + "maximumPeriod": 86400 + }, + "miners": { + "enabled": true, + "updateInterval": 60, + "stepInterval": 1800, + "maximumPeriod": 86400 + }, + "workers": { + "enabled": true, + "updateInterval": 60, + "stepInterval": 1800, + "maximumPeriod": 86400 + }, + "difficulty": { + "enabled": true, + "updateInterval": 1800, + "stepInterval": 10800, + "maximumPeriod": 604800 + }, + "price": { + "enabled": true, + "updateInterval": 1800, + "stepInterval": 10800, + "maximumPeriod": 604800 + }, + "profit": { + "enabled": true, + "updateInterval": 1800, + "stepInterval": 10800, + "maximumPeriod": 604800 + } + }, + "user": { + "hashrate": { + "enabled": true, + "updateInterval": 180, + "stepInterval": 1800, + "maximumPeriod": 86400 + }, + "worker_hashrate": { + "enabled": true, + "updateInterval": 60, + "stepInterval": 60, + "maximumPeriod": 86400 + }, + "payments": { + "enabled": true + } + }, + "blocks": { + "enabled": true, + "days": 30 + } + } +} From 61b34ec67c56a656c601b9f6855830da2dc097f6 Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Sat, 8 Jan 2022 19:16:50 +0100 Subject: [PATCH 13/14] Update phiblock.conf --- config_examples/phiblock.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config_examples/phiblock.conf b/config_examples/phiblock.conf index ed34b28ea..65fb54d29 100644 --- a/config_examples/phiblock.conf +++ b/config_examples/phiblock.conf @@ -32,9 +32,9 @@ "mergedMining": false, "clusterForks": "auto", "poolAddress": "", - "pubAddressPrefix": 23815, + "pubAddressPrefix": 23815, "intAddressPrefix": 1902175, - "subAddressPrefix": 1511751, + "subAddressPrefix": 1511751, "blockRefreshInterval": 1000, "minerTimeout": 900, "sslCert": "./cert.pem", From 22a2aebdf08eb186d6ed2a3a8af95c7d81e1e977 Mon Sep 17 00:00:00 2001 From: BlackPeter13 <60829180+BlackPeter13@users.noreply.github.com> Date: Sun, 4 Dec 2022 22:26:58 +0100 Subject: [PATCH 14/14] Update package.json --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 2a3b42365..0f72c3840 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ "redis": "*", "socket.io": "^3.1.1", "time-ago": "*", - "turtlecoin-multi-hashing": "git+https://github.com/turtlecoin/node8-multi-hashing.git", "utf-8-validate": "*" }, "engines": {