Coder Social home page Coder Social logo

liskpool's Introduction

Lisk Pool

This is first LISK delegate forging pool. Written in PHP.

#Requirements MariaDB server
Nginx/Apache (optional)
LISK Node
Highcharts (included in project)

#Setup on Linux Install all software mentioned above.
Setup your mysql server and import database scheme

lisk_pool_scheme_db.sql
Now please navigate to config.php

'host' => 'localhost',    <- don't change if mariadb is running on the same machine
'username' => 'root',     <- Database user
'password' => 'SQL_PASSWORD',  <- Database Password
'bdd' => 'lisk',    <- Database Name
'lisk_host' => 'localhost',   <- Lisk Node Host, acually pool can be running on different machine, it's also possible to point to login.lisk.io
'lisk_port' => '7000',    <- Lisk Testnet port, 8000 - Mainnet
'pool_fee' => '0.0%',     <- adjustable pool fee as float for ex. "1.25%"
'pool_fee_payout_address' => '17957303129556813956L',   <- Payout address if fee > 0.0
'delegate_address' => '17957303129556813956L',    <- Delegate address - must be valid forging delegate address
'payout_threshold' => '1',    <- Payout threshold in LISK
'fixed_withdraw_fee' => '0.1',    <- Fixed Wihtdraw fee in LISK
'withdraw_interval_in_sec' => '43200',   <- Wihtdraw script interval represented in seconds
'secret' => 'passphrase1',    <- Main passphrase the same your as in your forging delegete
'secondSecret' => 'passphrase2' <- Second passphrase, if you dont have one leave it empty ex. ""

#Start Pool Start LISK node as usual, and set up it to forge.

Now start background scripts:

Block Processing - this script check if delegate has forged new block, if yes it will be splited as defined in config

screen
Push Enter key
sudo php /var/private/processing.php


Updating charts - this script updates data to keep charts up to date.

screen
Push Enter key
sudo php /var/private/stats.php


Withdraw script - this script withdraw revenue as defined in config.

screen
Push Enter key
sudo php /var/private/withdraw.php



Optional Balance checker - Simple script to compare total LISK value stored in database in refernce to actual LISK stored on delegate account.

php /var/private/check.php

You can easily access all background scripts by
screen -ls
then pick one by
screen -x INTEGER

#Contributing If you want to contribute, fork and pull request or open issue.

#License Entire PHP is under The MIT License (MIT)
Front-end(site theme) is used from http://themes.3rdwavemedia.com/website-templates/responsive-bootstrap-theme-web-development-agencies-devstudio/
Personally i own license, so better buy license or use your own front-end.

#Donate Bitcoin -> 1MsCcLLzaZtgEiMsigFoRJjz149mPSoFKC
alt tag

liskpool's People

Watchers

 avatar  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.