mirror of https://github.com/BTCPrivate/z-nomp.git
Fixed blockNotify.js script which was using wrong indexes for arguments.
This commit is contained in:
parent
1a00efc42a
commit
82844687ac
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Bitcoin",
|
||||
"symbol": "btc",
|
||||
"symbol": "BTC",
|
||||
"algorithm": "sha256",
|
||||
"txMessages": false
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Darkcoin",
|
||||
"symbol": "drk",
|
||||
"symbol": "DRK",
|
||||
"algorithm": "x11",
|
||||
"txMessages": false
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"name": "Hirocoin",
|
||||
"symbol": "hic",
|
||||
"algorithm": "x11",
|
||||
"txMessages": false
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Peercoin",
|
||||
"symbol": "ppc",
|
||||
"symbol": "PPC",
|
||||
"algorithm": "sha256",
|
||||
"txMessages": false
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Quarkcoin",
|
||||
"symbol": "qrk",
|
||||
"symbol": "QRK",
|
||||
"algorithm": "quark",
|
||||
"txMessages": false
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Skeincoin",
|
||||
"symbol": "skc",
|
||||
"symbol": "SKC",
|
||||
"algorithm": "skein",
|
||||
"txMessages": false
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Yacoin",
|
||||
"symbol": "yac",
|
||||
"symbol": "YAC",
|
||||
"algorithm": "scrypt-jane",
|
||||
"txMessages": false
|
||||
}
|
|
@ -76,7 +76,7 @@ module.exports = function(logger, portalConfig, poolConfigs){
|
|||
var coinName = client.coins[i / commandsPerCoin | 0];
|
||||
var coinStats = {
|
||||
name: coinName,
|
||||
symbol: poolConfigs[coinName].coin.symbol,
|
||||
symbol: poolConfigs[coinName].coin.symbol.toUpperCase(),
|
||||
algorithm: poolConfigs[coinName].coin.algorithm,
|
||||
hashrates: replies[i + 1],
|
||||
poolStats: replies[i + 2],
|
||||
|
|
|
@ -7,13 +7,13 @@ This script will then send the blockhash along with other information to a liste
|
|||
*/
|
||||
|
||||
var net = require('net');
|
||||
var config = process.argv[1];
|
||||
var config = process.argv[2];
|
||||
var parts = config.split(':');
|
||||
var host = parts[0];
|
||||
var port = parts[1];
|
||||
var password = process.argv[2];
|
||||
var coin = process.argv[3];
|
||||
var blockHash = process.argv[4];
|
||||
var password = process.argv[3];
|
||||
var coin = process.argv[4];
|
||||
var blockHash = process.argv[5];
|
||||
|
||||
var client = net.connect(port, host, function() {
|
||||
console.log('client connected');
|
||||
|
|
Loading…
Reference in New Issue