diff --git a/coins/galleon.json b/coins/galleon.json new file mode 100644 index 0000000..53c6a2b --- /dev/null +++ b/coins/galleon.json @@ -0,0 +1,6 @@ +{ + "name" : "Galleon", + "symbol" : "GLN", + "algorithm" : "keccak", + "txMessages" : false +} \ No newline at end of file diff --git a/coins/helixcoin.json b/coins/helixcoin.json index adf4d2e..2ae867b 100644 --- a/coins/helixcoin.json +++ b/coins/helixcoin.json @@ -1,6 +1,6 @@ { "name" : "Helixcoin", "symbol" : "HXC", - "algorithm" : "keccak", + "algorithm" : "max", "txMessages" : false } \ No newline at end of file diff --git a/coins/wecoin.json b/coins/wecoin.json index 19e2e17..cdac3d3 100644 --- a/coins/wecoin.json +++ b/coins/wecoin.json @@ -1,6 +1,6 @@ { "name" : "Wecoin", "symbol" : "WEC", - "algorithm" : "keccak", + "algorithm" : "max", "txMessages" : false } \ No newline at end of file diff --git a/libs/website.js b/libs/website.js index 5e6cbfe..6f39f53 100644 --- a/libs/website.js +++ b/libs/website.js @@ -1,28 +1,3 @@ -/* TODO - - -Need to condense the entire website into a single html page. Embedding the javascript and css is easy. For images, -hopefully we can only use svg which can be embedded - otherwise we can convert the image into a data-url that can -be embedded, Favicon can also be a data-url which some javascript kungfu can display in browser. I'm focusing on -this mainly to help mitigate ddos and other kinds of attacks - and to just have a badass blazing fast project. - -Don't worry about doing any of that condensing yourself - go head and keep all the resources as separate files. -I will write a script for when the server starts to read all the files in the /website folder and minify and condense -it all together into one file, saved in memory. We will have 1 persistent condensed file that servers as our "template" -file that contains things like: -
Hashrate: {{=stats.hashrate}
- -And then on some caching interval (maybe 5 seconds?) we will apply the template engine to generate the real html page -that we serve and hold in in memory - this is the file we serve to seo-bots (googlebot) and users when they first load -the page. - -Once the user loads the page we will have server-side event source connected to the portal api where it receives -updated stats on some interval (probably 5 seconds like template cache updater) and applies the changes to the already -displayed page. - -We will use fs.watch to detect changes to anything in the /website folder and update our stuff in memory. - - */ var fs = require('fs'); var path = require('path'); @@ -31,6 +6,8 @@ var async = require('async'); var dot = require('dot'); var express = require('express'); +var watch = require('node-watch'); + var api = require('./api.js'); @@ -101,8 +78,9 @@ module.exports = function(logger){ - fs.watch('website', function(event, filename){ - if (event === 'change' && filename in pageFiles) + watch('website', function(filename){ + //if (event === 'change' && filename in pageFiles) + //READ ALL THE FILEZ BLAHHH readPageFiles(); }); diff --git a/package.json b/package.json index c63ae63..5ebd0ec 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "async": "*", "express": "*", "dot": "*", - "colors": "*" + "colors": "*", + "node-watch": "*" }, "engines": { "node": ">=0.10" diff --git a/pool_configs/galleon_example.json b/pool_configs/galleon_example.json new file mode 100644 index 0000000..08c1c6e --- /dev/null +++ b/pool_configs/galleon_example.json @@ -0,0 +1,33 @@ +{ + "disabled": false, + "coin": "galleon.json", + + "address": "GRAiuGCWLrL8Psdr6pkhLpxrQGHdYfrSEz", + "blockRefreshInterval": 1000, + "txRefreshInterval": 20000, + "connectionTimeout": 600, + + + "ports": { + "3537": { + "diff": 4 + } + }, + + "daemons": [ + { + "host": "localhost", + "port": 19632, + "user": "testuser", + "password": "testpass" + } + ], + + "p2p": { + "enabled": false, + "host": "localhost", + "port": 19333, + "protocolVersion": 70002, + "magic": "fcc1b7dc" + } +} \ No newline at end of file diff --git a/pool_configs/helixcoin_example.json b/pool_configs/helixcoin_example.json index 9732ad5..75f412c 100644 --- a/pool_configs/helixcoin_example.json +++ b/pool_configs/helixcoin_example.json @@ -1,5 +1,5 @@ { - "disabled": false, + "disabled": true, "coin": "helixcoin.json", "address": "H9xyrh45LzLX4uXCP6jG6ZGrWho8srUgiG", diff --git a/pool_configs/litecoin_example.json b/pool_configs/litecoin_example.json index 54e3a40..ba66286 100644 --- a/pool_configs/litecoin_example.json +++ b/pool_configs/litecoin_example.json @@ -1,5 +1,5 @@ { - "disabled": true, + "disabled": false, "coin": "litecoin.json", "shareProcessing": { diff --git a/website/pages/getting_started.html b/website/pages/getting_started.html index daf9fd0..e228dc7 100644 --- a/website/pages/getting_started.html +++ b/website/pages/getting_started.html @@ -1,5 +1,5 @@
- To get started.... + To get started simply....
\ No newline at end of file