Skip to content

Commit fc5fde8

Browse files
committed
Add Ring.
1 parent b6391da commit fc5fde8

6 files changed

Lines changed: 14 additions & 3 deletions

File tree

coins/ring.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "Ring",
3+
"symbol": "RNG",
4+
"algorithm": "minotaur",
5+
"coinbase": "Crypto Pools by AoD Technologies LLC - https://cryptopools.aod-tech.com",
6+
"peerMagic": "cefe839a",
7+
"peerMagicTestnet": "b2c4b793"
8+
}

libs/paymentProcessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ function SetupForPool(logger, poolOptions, setupFinished) {
11741174
symbol: poolOptions.coin.symbol,
11751175
blocks: paymentBlocks,
11761176
miners: Object.keys(addressAmounts).length,
1177-
url: poolOptions.coin.explorer.txURL + txid
1177+
url: poolOptions.coin.explorer && poolOptions.coin.explorer.txURL ? poolOptions.coin.explorer.txURL + txid : ''
11781178
});
11791179

11801180
var postRequest = http.request(poolOptions.sentPaymentWebhook.replace('{coin}', poolOptions.coin.name), {

libs/shareProcessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = function(logger, poolConfig){
110110
miner: shareData.worker,
111111
type: shareData.isSoloMining ? 'SOLO' : 'PROP',
112112
height: shareData.height,
113-
url: poolConfig.coin.explorer.blockURL + shareData.blockHash
113+
url: poolConfig.coin.explorer && poolConfig.coin.explorer.blockURL ? poolConfig.coin.explorer.blockURL + shareData.blockHash : ''
114114
});
115115

116116
var postRequest = http.request(poolConfig.foundBlockWebhook.replace('{coin}', poolConfig.coin.name), {

libs/website.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ module.exports = function(logger) {
323323
case 'lcnt':
324324
protocol = 'lucent';
325325
break;
326+
case 'rng':
327+
protocol = 'ring';
328+
break;
326329
case 'rvn':
327330
protocol = 'raven';
328331
break;

scripts/blocknotify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ NOMP_HOST=127.0.0.1:17117
1111
#echo "BlockNotify: $NOMP_HOST $NOMP_COIN $NOMP_HASH" >> /var/log/crypto-pool.blocknotify.log
1212

1313
case $NOMP_COIN in
14-
bitcoin|dash|dogecoin|horizen|litecoin|lucent|raven|stronghands|vertcoin|veruscoin|zero)
14+
bitcoin|dash|dogecoin|horizen|litecoin|lucent|raven|ring|stronghands|vertcoin|veruscoin|zero)
1515
/opt/cryptocurrency/nomp/scripts/blocknotify $NOMP_HOST $NOMP_COIN $NOMP_HASH
1616
;;
1717
bitcoincash)

website/static/ring.png

4.58 KB
Loading

0 commit comments

Comments
 (0)