Giter Club home page Giter Club logo

ghost-coldstakepool's Introduction

Ghost Cold-Staking Pool - Proof of concept,forked from Particl's Cold staking pool code

Build Status

Overview

Pool participants send their coin to a coldstake script with a stake address owned by the pool and a spend address owned by the participant.

The pool can only stake such outputs, participants can withdraw their coin without interacting with the pool.

A pool-fee is deducted from the reward of each block staked by the pool. This fee should cover the costs of running the pool as well as the transaction fees of the payouts.

An optional stake bonus can deducted and assigned to the address of the output which staked the block.

The remaining block reward is accumulated to the pool participants spend scripts in proportion to the amount of coin each spend script has in the pool.

Participants are incentivised to split their pooled coin to few spend scripts to increase the frequency of the payouts and increase their chances of claiming stake bonuses.

The pool can split or join outputs on the same scripts. If a participant starts with an output of 200 part and sends a further 1 part output to the pool on the same script the pool will join the outputs when either output stakes. Both outputs must be below the 'stakecombinethreshold' setting to join.

Coin sent to the pool must be stakeable before it starts to accrue rewards. Outputs must be 225 blocks deep in the chain they can stake.

The pool must run at least 100 blocks behind the main chain. At this depth all stake rewards should be matured and forks resolved.

Participants can verify a pool is operating correctly by running the pool script in 'observer' mode.

The pool should isolate the accumulated reward coin in a non-staking wallet. Change from payout transactions should go back to the pool reward address for easier tracking by observers.

Notes

Amount accumulation is done at 16 decimal places.

The staking wallet and the reward wallet don't need to be in the same node.

The stake bonus could be attributed to the output in the coinstake txn, adding it to the spend script's accumulated coin will cause the lot to be paid out sooner.

When reloading a pool, run the script in observer mode until synced then switchover to master. If reloading in master mode the script will attempt to make payments that have already been paid.

Further Work:

  • Track extaddress stake address

  • Email payout info to pool operator for offline signing.

  • SMSG announcements

ghost-coldstakepool's People

Contributors

tecnovert avatar akshaynexus avatar kewde avatar litebit avatar allienworks 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.