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",
"symbol": "btc",
"symbol": "BTC",
"algorithm": "sha256",
"txMessages": false
}

View File

@ -1,6 +1,6 @@
{
"name": "Darkcoin",
"symbol": "drk",
"symbol": "DRK",
"algorithm": "x11",
"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",
"symbol": "ppc",
"symbol": "PPC",
"algorithm": "sha256",
"txMessages": false
}

View File

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

View File

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

View File

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

View File

@ -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],

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 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');