z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
290 stars 440 forks source link

Immature Balance Tracking #195

Closed hellcatz closed 7 years ago

hellcatz commented 7 years ago

PR for Issue https://github.com/z-classic/z-nomp/issues/194

Change Notes

Add blocks api call. Add immature balance to api. Update recommended minimums. Cache market stats every 5 minutes, do not use payment interval. Changes to confirmation tracking and payments waterfall. Add immature balance calculations and tracking.

The changes effects payments, balances, immature balance tracking, block confirmation tracking, and more.

It is recommended to test this PR on any testnet extensively before putting on a live pool.

The following needs to be tested and confirmed before merging:

Both PPLNT and Prop can be effected:

sennevb commented 7 years ago

Thanks, i'll setup a test node..

sennevb commented 7 years ago

can be tested here: http://94.110.198.196:8008

WaveringAna commented 7 years ago

:+1: going to drop a cpu core on

sennevb commented 7 years ago

@hellcatz when payments cannot be sent bcuz funds are still in shielding process, it keeps trying sending payments till funds are unshielded.

In this meantime, block confirmation numbers are not getting updated!

hellcatz commented 7 years ago

@sennevb Thanks for spotting this! I'm on it...

hellcatz commented 7 years ago

The immature branch has been updated to fix the bug @sennevb found. There have been other changes mentioned in the commit above and it needs to be tested again.