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

hashLimit 문제 수정 #32

Open
hackmod opened this issue Apr 6, 2018 · 0 comments
Open

hashLimit 문제 수정 #32

hackmod opened this issue Apr 6, 2018 · 0 comments

Comments

@hackmod
Copy link
Member

hackmod commented Apr 6, 2018

OpenCommunityCoin/open-ethereum-pool@6bcc926

현재 hashLimit 방식은 api 서버단에서 이미 하고 있는 hashrate collect 작업을 풀 proxy 서버단에게 쉐어를 받을때마다 중복 수행하고 있습니다.

이 문제를 해소하기 위해서, api 서버단에서 계산한 hashrate를 api 서버단에서 redis에 저장하게끔 하고,
풀 proxy 서버단에서 redis에 이미 계산된 hashrate를 읽어서, hashrate collect 작업을 매번 수행되지 않도록 한 것입니다.

위 패치는, 내용이 좀 섞여있습니다.

  • api 서버단에서 hashrate 저장
  • hashLimit 제한 걸리면 share reject
  • hashLimit이 걸릴 경우 마이너에게 알리도록 함 (miner에 따라서 오류 내용이 전달 안되는 문제 확인함)
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

No branches or pull requests

1 participant