Giter VIP home page Giter VIP logo

js2pool's Introduction

A Decentralized Mining Pool - Js2Pool

The new generation P2Pool by Node.js

Features

  1. 100% Compatible with P2Pool
  2. Much lower CPU usage than P2Pool (Todo: SHA256 by C++)
  3. Clear code style and logic

Prerequisites

  1. Node.js v6.0+
  2. Node-gyp v3.6+
  3. 4 GB+ Free Mem
  4. Linux/macOS x64/x86

Installation

  1. Node.js, node-gyp and TypeScript
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_7.x | bash -
apt-get install -y nodejs

# Using CentOS 6/RHEL 6
curl -sL https://rpm.nodesource.com/setup_7.x | bash -
yum install -y nodejs

# Using macOS
brew install node

##############################################################################################################################################
# More Node.js installation info, please visit https://github.com/nodesource/distributions or https://nodejs.org/en/download/package-manager #
##############################################################################################################################################

# node-gyp
npm i -g node-gyp

# Typescript
npm i -g typescript

  1. Installing Js2Pool from source code
git clone https://github.com/unsignedint8/js2pool.git && cd js2pool

# Install dependencies
npm update

# Compile the TypeScript code
tsc -p .

# Link executable files
npm link

Usage

This project has not been finished yet. So, don't use it in production environment. Coming soon...

Known issues

  1. SHA256 Performance (I'm trying to rewrite SHA256 by using Node.js C++ module, but I don't know much about C++. So, to implement it may take me a long time)
  2. Weights calculation may have a problem, when total weights exceed the desired weight. PaymentCalculator#L61-L75

License

GPL v3.0

js2pool's People

Contributors

unsignedint8 avatar

Watchers

James Cloos avatar

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.