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",
|
"name": "Bitcoin",
|
||||||
"symbol": "btc",
|
"symbol": "BTC",
|
||||||
"algorithm": "sha256",
|
"algorithm": "sha256",
|
||||||
"txMessages": false
|
"txMessages": false
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Darkcoin",
|
"name": "Darkcoin",
|
||||||
"symbol": "drk",
|
"symbol": "DRK",
|
||||||
"algorithm": "x11",
|
"algorithm": "x11",
|
||||||
"txMessages": false
|
"txMessages": false
|
||||||
}
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"name": "Hirocoin",
|
||||||
|
"symbol": "hic",
|
||||||
|
"algorithm": "x11",
|
||||||
|
"txMessages": false
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Peercoin",
|
"name": "Peercoin",
|
||||||
"symbol": "ppc",
|
"symbol": "PPC",
|
||||||
"algorithm": "sha256",
|
"algorithm": "sha256",
|
||||||
"txMessages": false
|
"txMessages": false
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Quarkcoin",
|
"name": "Quarkcoin",
|
||||||
"symbol": "qrk",
|
"symbol": "QRK",
|
||||||
"algorithm": "quark",
|
"algorithm": "quark",
|
||||||
"txMessages": false
|
"txMessages": false
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Skeincoin",
|
"name": "Skeincoin",
|
||||||
"symbol": "skc",
|
"symbol": "SKC",
|
||||||
"algorithm": "skein",
|
"algorithm": "skein",
|
||||||
"txMessages": false
|
"txMessages": false
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Yacoin",
|
"name": "Yacoin",
|
||||||
"symbol": "yac",
|
"symbol": "YAC",
|
||||||
"algorithm": "scrypt-jane",
|
"algorithm": "scrypt-jane",
|
||||||
"txMessages": false
|
"txMessages": false
|
||||||
}
|
}
|
|
@ -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],
|
||||||
|
|
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue