GithubHelp home page GithubHelp logo

techman34 / tokenpool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0xbitcoin/tokenpool

0.0 1.0 0.0 11.79 MB

A pool mining coordinator that communicates with mining software using JSONRPC

License: GNU General Public License v3.0

HTML 9.49% JavaScript 55.18% CSS 35.32%

tokenpool's Introduction

Token Mining Pool

Developed by the 0xBitcoin Community

(GNU PUBLIC LICENSE)

A pool for mining RC20 Tokens

CSS Colors: https://flatuicolors.com/palette/au

  1. improve colors
  2. more workers (jsonrpc listeners?)
  3. two eth accounts .. xfers and mints
  4. separate geth
  5. why does it say 'Reply:OK' ??

BASIC SETUP (needs Node8)

  1. npm install -g node-gyp 1.1. sudo apt-get install build-essential

You may need to do.. 1.2.sudo apt-get install python2.7 1.3.npm config set python python2.7

  1. npm install

  2. npm run webpack #(to build the website files)

  3. rename 'sample.account.config.js' to 'account.config.js' and fill it with the pool's ethereum account data

  4. install redis-server and make sure it is running

  5. Edit pool.config.js to your tastes

  6. Edit the website files in /app to change the look of the website

  7. npm run server #(or npm run server test for Ropsten test net)

CONFIGURING - set up account.config.js and pool.config.js

pool.config.js

var poolconfig = { minimumShareDifficulty: 5000, //lowest miner share difficulty maximumShareDifficulty: 10000 //highest miner share difficulty solutionGasPriceWei: 10, //ether paid by the pool for each mint transferGasPriceWei: 6, //ether paid by the pool for each payment poolTokenFee: 5, //percent of tokens the pool keeps for itself communityTokenFee: 2, //percent of tokens the pool pledges to donate minBalanceForTransfer: 1500000000,
payoutWalletMinimum: 100000000000, allowCustomVardiff: true, populationLimit: 100, //not implemented yet... web3provider: "http://127.0.0.1:8545" //point at Geth or remove to use Infura }

HOW TO USE

  1. Point a poolminer at your pool using http://localhost:8586 (or ipaddress:8586 or domain.com:8586) (make sure firewall allows this port)
  2. View website interface at http://localhost:3000 (you can set up nginx to serve the static files in /public)

Installing MongoDB

https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04#step-3-%E2%80%94-adjusting-the-firewall-(optional)

Installing Redis

  1. sudo apt-get install redis
  2. sudo service redis-server start
  • Redis will serve/connect at localhost:6379 by default - the pool will use this port

https://stackoverflow.com/questions/19581059/misconf-redis-is-configured-to-save-rdb-snapshots?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

redis-cli config set stop-writes-on-bgsave-error yes

cron job to clean redis 30 6 1 * * /home/andy/.nvm/versions/node/v8.9.4/bin/node /home/andy/deploy/tokenpool/clean-redis.js

Redis Commands

TODO / BUGS

  • Add more clustering/workers and more JSONRPC/socket ports to handle heavy loads

MINT HELPER

  • Tell miner to mine using ethaddress of the mint helper
  • Submit mints to the minthelper instead of the actual token smart contract

*** The balance_transfers can get the wrong TXID in them!! need to store a record for EACH one or wait longer or implement mikers batching

** wipe out total_pool_hashrate with script (redis)

tokenpool's People

Contributors

ethereumdegen avatar janniswiese avatar mining-visualizer avatar turboboost55 avatar

Watchers

 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.