Giter Club home page Giter Club logo

node-merged-portal's Introduction

Node Merged Portal

This is a simple pool which makes use of node-merged-pool to allow for a simple merged mining solution

Quick Start

  1. Clone this repository
  2. Gather dependencies:
npm install
  1. Set coin configurations
  2. Copy config.json.example to config.json.
  3. Edit config.json as needed.
  4. Create pool configurations inside pools. Place coin configurations in the coins directory
  5. Start the pool with:
node app.js
  1. Publicize your pool to relevant forums. ex: LottoShares Forum

Configuration Description

config.json

{
    "web": {
        "port": 4567 // The port the website will be available on
    },

    "db": {
        "sharelogMaxLength": 20000, // This should always be much greater than pplnsShares
        "graphMaxLength": 10000, // Graphs are not yet implemented
        "hashrateTime": 10 // Number if minutes over which the pool hashrate will be calculated
    },

    "payouts": {
        "interval": 20, // How often (in seconds) should the payout daemon scan for payouts to execute?
        "threshold": 1 // How many coins are required for a client to receive payout?
    },

    "pplnsShares": 100000 // Number of shares to use for block
}

litecoin-merged.json

{
    "coin": "litecoin.json", // Make sure this file is available in the coins directory
    "auxes": [ // Defines auxillery coins
        {
            "coin": "lottoshares.json",
            "daemons": [ // It is reccomended to supply multiple daemons here for redundancy
                {
                    "host": "127.0.0.1",
                    "port": 23327,
                    "user": "lottosharesrpc",
                    "password": "By66dCmyX44uUbA7P3qqXJQeT3Ywd8dZ4dJdfgxCAxbg"
                }
            ]
        }
    ],

    "address": "LWnyEVFNBKmSezQZx7oCmPm77FLzEhaAp1", // Payout address of the primary coin
    "rewardRecipients": { // For pool operator fees
        // Donation address - leave here if you would like to donate :)
        // it supports all coins
        "02ac8adcede9992d1e4f60477a93a6445266084b3ffc429d5d243293b0e5f7701d": 0.1
    },

    "blockRefreshInterval": 1000, // How often should node-merged-pool poll for blocks?

    "jobRebroadcastTimeout": 55, // When should updated blocks/transactions be sent to clients?
    "connectionTimeout": 600,

    "emitInvalidBlockHashes": false, // Has no effect at this time

    "tcpProxyProtocol": false, // Has no effect at this time

    "banning": {
        "enabled": true,
        "time": 600, // How long bans last
        "invalidPercent": 50,
        "checkThreshold": 500,
        "purgeInterval": 300
    },

    // Define your stratum ports here
    "ports": {
        "3032": { // Here is one
            "diff": 32, // with share difficulty 32

            "varDiff": { // Vardiff configuration
                "minDiff": 8,
                "maxDiff": 512,
                "targetTime": 15, // How often a share should be submitted by a client
                "retargetTime": 90,
                "variancePercent": 30
            }
        },
        "3256": { // Another stratum port for fast miners
            "diff": 256
        }
    },

    "daemons": [ // Primary coin daemon configuration. Same as above, include multiple daemons for redundancy
        {
            "host": "127.0.0.1",
            "port": 9332,
            "user": "litecoinrpc",
            "password": "8gZFkt93ZcCuTYZ6riGJbsDNUZXmZewvETEGJEccX2mc"
        }
    ],


    // Currently has no effect
    "p2p": {
        "enabled": false,

        "host": "127.0.0.1",

        "port": 19333,

        "disableTransactions": true

    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.