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

Hdac 자동 풀 오류 수정 작업 #1

Open
wants to merge 9 commits into
base: hdac-origin
Choose a base branch
from
Open

Hdac 자동 풀 오류 수정 작업 #1

wants to merge 9 commits into from

Conversation

hackmod
Copy link
Member

@hackmod hackmod commented May 22, 2018

Done

  • tx.result == null 오류 검사를 먼저 수행
  • payout만 단독으로 실행할 수 있게 간단한 pay.js 만듦 (init.js를 카피하고, payout 이외의 부분 제거)
    • node pay.jsnode init.js 동시 수행 가능.
    • pay.js 의 경우 payment_configs/* 아래의 설정을 읽도록 수정.
  • 버그 수정된 stratum-pool 사용 (ePoW off)
  • web.js 별도로 분리.
  • block height off by one 버그 수정 (stratum-pool의 버그) (5/27)
  • confirmation > 100 이상의 경우 payout
  • confirmation < 0의 경우 orphan으로 분류
  • block height이 맞지 않는 경우에 block height 자동 수정. (5/27)
  • 최신 bitcoin 소스 기반 코인의 경우 miner가 나오지 않음 => getrawtransaction을 통해서 miner 주소 가져오도록 수정. (5/26)
  • 전체 네트워크 해시를 redis로 주기적으로 저장하여 api로 출력하게끔 수정. (5/27)
  • 워커를 shares로 정렬 (5/27)

@hackmod hackmod changed the base branch from master to hdac-origin May 22, 2018 20:31
@hackmod
Copy link
Member Author

hackmod commented May 23, 2018

풀 worker가 죽는 케이스 1)

글라스락님이 디스코드 채널에서 5/22 오후 7:37분경 발견하고 알려주심.

image

/root/nomp/libs/poolWorker.js:154
                                return r.response.isvalid
                                                  ^

TypeError: Cannot read property 'isvalid' of null
    at /root/nomp/libs/poolWorker.js:154:51
    at Array.filter (<anonymous>)
    at /root/nomp/libs/poolWorker.js:153:51
    at /root/nomp/node_modules/stratum-pool/lib/daemon.js:175:17
    at /root/nomp/node_modules/async/dist/async.js:473:16
    at iteratorCallback (/root/nomp/node_modules/async/dist/async.js:1050:13)
    at /root/nomp/node_modules/async/dist/async.js:958:16
    at itemFinished (/root/nomp/node_modules/stratum-pool/lib/daemon.js:158:17)
    at /root/nomp/node_modules/stratum-pool/lib/daemon.js:169:17
    at parseJson (/root/nomp/node_modules/stratum-pool/lib/daemon.js:85:17)
2018-05-22 19:39:07 [Master]    [PoolSpawner] Fork 2 died, spawning replacement worker...

Since the new Wallet release of Bitcoin Core, they introduced a new Validation format for addresses.
Validateaddress is not longer working.
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