npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

merged-pooler-portal

v0.0.2

Published

Node Merged Portal ================== This is a simple pool which makes use of merged-pooler to allow for a simple merged mining solution

Downloads

12

Readme

Build Status

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 merged-pooler-portal
  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

    }
}