Git Product home page Git Product logo

particl-coldstakepool's People

Contributors

allienworks avatar kewde avatar litebit avatar tecnovert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

particl-coldstakepool's Issues

Incorrect syncing of stakepooldb in observer mode

I'm in the process to setup a staking pool based on this implemention and tried re-syncing the stakepooldb from scratch in observer mode. After completion I switched back to master mode and at the next payout time it created a transaction, which failed because of unsufficent funds.

Reason was that the accumulatedAddr balance in the DB was not updated in processPayments during sync phase because of the sanity check "Warning: Pool height is below node height ...". The sanity check should be moved some lines down, right after the check for "master" mode so that the book keeping is done and just the actual payment transactions are skipped.

I modified the code this way and resyncing works fine now.

BTW: In findPayments: The code related to checking over payment does not look right:
if addrPending < 0:
logmt(self.fp, 'WARNING: txn %s overpays address %s more than pending payout, pending: %d, paid: %d.\n' % (txid, address, addrPending + v, v), True, True)
if addrReward + addrPending < 0:
logmt(self.fp, 'WARNING: txn %s overpays address %s more than accumulated reward %d, paid: %d.\n' % (txid, address, addrPending + v, v), True, True)
else:
addrReward += addrPending
addrPending = 0

addrReward is in unit COIN*COIN and addrPending is in unit COIN so we can't add them.

Lacking Information Regarding Pool's Configuration Settings and Best Practices For "Live" Pools

Hey everyone, I was investigating setting up a stakepool of my own but even looking at the https://github.com/tecnovert/particl-coldstakepool/tree/master/doc. It seems to lack information regarding the configuration file what various settings' does (some are obvious, others aren't so much) and so on as well of any "best practices". Such as (if it applies) what to be backing up, how it should be backed up, restoring/resuming a damaged pool (like if the VPS or hardware were to kick the bucket) and anything else that may be relevant. As far as configuring and maintaining a "live" pool.

Thanks very much in advance!

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.