Skip to content

Latest commit

 

History

History
201 lines (150 loc) · 6.09 KB

README.md

File metadata and controls

201 lines (150 loc) · 6.09 KB

Front-End Statistics for the Ethash Mining Pool

Front End component for the Ethash mining pool.

This is an ember application, which can be hosted on any simple webserver. The application static pages can be placed in any Content delivery network for faster access

Features

**This pool is reegineered from sammy007 open-ethereum-pool for efficiency and for better payment algorithm. This software is functional and tested and implemented in big Mining farms. Testing and bug submissions are still welcome!

  • Support for HTTP, SSL, Stratum, Stratum+SSL mining
  • Detailed block stats with luck percentage and full reward
  • Failover node instances: high availability built in (Any number of full nodes can be added to the configurations)
  • Modern beautiful Ember.js frontend for Individual coin statistics vs consolidated coin statistics
  • Separate stats for workers: can highlight timed-out workers so miners can perform maintenance of rigs
  • JSON-API for statistics, (Looking for contributor to build app for the pool)
  • Dynamic PPLNS block reward (*New)

Prerequisites

You will need the following things properly installed on your computer.

Branches

**Please clone the project using the branches as per the coin

  • v1.0_Eth – Ethereum
  • v1.0_Etc – Ethereum Classic
  • v1.0_Exp – Expanse
  • v1.0_Ubiq – Ubiq
  • v1.0_Pirl – Pirl
  • v1.0_Dbix – Dubai coin
  • v1.0_Soil – Soil Coin
  • v1.0_Mc – Music Coin

Installation

  • git clone -b <branch> https://github.com/techievee/statistics_api.git this repository
  • change into the new directory
  • npm install
  • bower install
  • sudo chmod +x build.sh
  • ./build.sh

Copy the build filesto your webserver or to CDN.

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Building

  • ember build (development)
  • ember build --environment production (production)

Configuration Documentation- Applies to all brnanches

Configuration is actually simple, just read it twice and think twice before changing defaults.

/* jshint node: true */

module.exports = function (environment) {
    var ENV = {
        modulePrefix: 'open-ethereum-pool',
        environment: environment,
        rootURL: '/',
        locationType: 'hash',
        EmberENV: {
            FEATURES: {
                // Here you can enable experimental features on an ember canary build
                // e.g. 'with-controller': true
            }
        },

        APP: {
            // API host and port
            ApiUrl: '//eth.daggerpool.com/',

            // HTTP mining endpoint            
            HttpHost: 'http://eth-us01.daggerpool.com',
            HttpPort: 40001,

            // Stratum mining endpoint
            StratumHost: 'eth-us01.daggerpool.com',
            StratumPort: 40011,

            StratumHost1: 'eth-uk01.daggerpool.com',
            StratumPort1: 40011,

            NicehashHost: 'eth-nh.daggerpool.com',
            NicehashPost: 40021,

            // Fee and payout details
            PoolFee: '0.99%',
            PayoutThreshold: '0.01',
            ShareDifficulty: '4000000000',

            //Current and Localization
            Currency: 'USD',
            CoinName: 'Ethereum',
            CoinShortName: 'ETH',
            PaymentText: 'every 2 hours',
            SupportMail: 'helpdesk@daggerpool.com',
            SupportHelpdesk: 'http://helpdesk.daggerpool.com',
            WebsiteName: 'eth.daggerpool.com',

            //Coin Bases Settings
            ChainAddress : 'https://etherscan.io/address/',
	    TransactionAddress : 'https://etherscan.io/tx/',
            UncleAddress : 'https://etherscan.io/uncle/',
            BlockAddress : 'https://etherscan.io/block/',

            //Twitter Parameter
            TwitterURL: 'https://twitter.com/',
            TwitterHash: 'daggerpool_com',


            // For network hashrate (change for your favourite fork)
            BlockTime: 15


        }
    };

    if (environment === 'development') {
        /* Override ApiUrl just for development, while you are customizing
         frontend markup and css theme on your workstation.
         */
        ENV.APP.ApiUrl = 'https://eth.daggerpool.com/'
        // ENV.APP.LOG_RESOLVER = true;
        // ENV.APP.LOG_ACTIVE_GENERATION = true;
        // ENV.APP.LOG_TRANSITIONS = true;
        // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
        // ENV.APP.LOG_VIEW_LOOKUPS = true;
    }

    if (environment === 'test') {
        // Testem prefers this...
        ENV.locationType = 'none';

        // keep test console output quieter
        ENV.APP.LOG_ACTIVE_GENERATION = false;
        ENV.APP.LOG_VIEW_LOOKUPS = false;

        ENV.APP.rootElement = '#ember-testing';
    }

    if (environment === 'production') {
        ENV.baseURL = '/ember-cli-twitter-feed/';
    }

    ENV.contentSecurityPolicy = {
        'script-src': [
            "'self'",
            'https://syndication.twitter.com',
			            'https://cdn.syndication.twimg.com',
            "'sha256-XnNQECY9o-nIv2Qgcd1A39YarwxTm10rhdzegH_JBxY='"],
        'style-src': [
            "'self'",
            'http://platform.twitter.com',
            "'sha256-zCvYlDs6LsUp0EqrJFjIGUiM_AG2fGlkNrzJ2YiBTG0='"],
        'img-src': [
            "'self'",
            'data:',
            'https://pbs.twimg.com',
            'https://syndication.twitter.com',
            'http://platform.twitter.com']
    };
    return ENV;
};

Further Reading / Useful Links