Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) PPLNS support #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

(WIP) PPLNS support #7

wants to merge 1 commit into from

Conversation

hackmod
Copy link
Member

@hackmod hackmod commented Oct 27, 2018

based on Ellaism work, but after some dig into the github repos, I've found the original author of the PPLNS

Original author: Daniel Böhler

  • Secure Last N Shares
  • Fix N Shares

cleanup by Ellaismer

  • [x] Remove WriteRewards
  • Fix roundshare API display error
  • Move roundshare stats to minerstates
  • Should take difficulty into account for writeShare

storage/redis.go Outdated
@@ -231,6 +254,12 @@ func (r *RedisClient) WriteBlock(login, id string, params []string, diff, roundD
}

func (r *RedisClient) writeShare(tx *redis.Multi, ms, ts int64, login, id string, diff int64, expire time.Duration) {
times := int(diff / 1000000000)
for i := 0; i < times; i++ {
tx.LPush(r.formatKey("lastshares"), login)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

쉐어의 난이도가 특정 기준보다 높으면 더 많은 쉐어를 준다는 것인데...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

 * Secure Last N Shares
 * Fix N Shares

PPLNS cleanup by Ellaismer <[email protected]>
 * Fix roundshare API display error
 * Move roundshare stats to minerstates

squash and minor cleanup by hackyminer <[email protected]> 2018-10-26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants