Fixed blockNotify.js script which was using wrong indexes for arguments.

This commit is contained in:
Matt 2014-03-25 12:52:11 -06:00
parent 1a00efc42a
commit 82844687ac
9 changed files with 17 additions and 11 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "Bitcoin", "name": "Bitcoin",
"symbol": "btc", "symbol": "BTC",
"algorithm": "sha256", "algorithm": "sha256",
"txMessages": false "txMessages": false
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "Darkcoin", "name": "Darkcoin",
"symbol": "drk", "symbol": "DRK",
"algorithm": "x11", "algorithm": "x11",
"txMessages": false "txMessages": false
} }

6
coins/hirocoin.json Normal file
View File

@ -0,0 +1,6 @@
{
"name": "Hirocoin",
"symbol": "hic",
"algorithm": "x11",
"txMessages": false
}

View File

@ -1,6 +1,6 @@
{ {
"name": "Peercoin", "name": "Peercoin",
"symbol": "ppc", "symbol": "PPC",
"algorithm": "sha256", "algorithm": "sha256",
"txMessages": false "txMessages": false
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "Quarkcoin", "name": "Quarkcoin",
"symbol": "qrk", "symbol": "QRK",
"algorithm": "quark", "algorithm": "quark",
"txMessages": false "txMessages": false
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "Skeincoin", "name": "Skeincoin",
"symbol": "skc", "symbol": "SKC",
"algorithm": "skein", "algorithm": "skein",
"txMessages": false "txMessages": false
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "Yacoin", "name": "Yacoin",
"symbol": "yac", "symbol": "YAC",
"algorithm": "scrypt-jane", "algorithm": "scrypt-jane",
"txMessages": false "txMessages": false
} }

View File

@ -76,7 +76,7 @@ module.exports = function(logger, portalConfig, poolConfigs){
var coinName = client.coins[i / commandsPerCoin | 0]; var coinName = client.coins[i / commandsPerCoin | 0];
var coinStats = { var coinStats = {
name: coinName, name: coinName,
symbol: poolConfigs[coinName].coin.symbol, symbol: poolConfigs[coinName].coin.symbol.toUpperCase(),
algorithm: poolConfigs[coinName].coin.algorithm, algorithm: poolConfigs[coinName].coin.algorithm,
hashrates: replies[i + 1], hashrates: replies[i + 1],
poolStats: replies[i + 2], poolStats: replies[i + 2],

View File

@ -7,13 +7,13 @@ This script will then send the blockhash along with other information to a liste
*/ */
var net = require('net'); var net = require('net');
var config = process.argv[1]; var config = process.argv[2];
var parts = config.split(':'); var parts = config.split(':');
var host = parts[0]; var host = parts[0];
var port = parts[1]; var port = parts[1];
var password = process.argv[2]; var password = process.argv[3];
var coin = process.argv[3]; var coin = process.argv[4];
var blockHash = process.argv[4]; var blockHash = process.argv[5];
var client = net.connect(port, host, function() { var client = net.connect(port, host, function() {
console.log('client connected'); console.log('client connected');