NOMP 셋팅 후 기동을 시키니 아래의 초록색 로그가 발생을 했다.
1004lucifer
root@ubuntu:~/nomp#
root@ubuntu:~/nomp# node init.js
2018-02-03 13:49:38 [POSIX] [Connection Limit] (Safe to ignore) POSIX module not installed and resource (connection) limit was not raised
2018-02-03 13:49:38 [Master] [CLI] CLI listening on port 17117
2018-02-03 13:49:39 [Payments] [coin] Daemon does not own pool address - payment processing can not be done with this daemon, {"isvalid":true,"address":"Hsdfsafasf68sa4f6as5f4as6f51kk","scriptPubKey":"76a91sadf6asd5f4asd3fas5d4fas6d8f4sadfae4ee67fbfa788ac","ismine":false,"iswatchonly":false,"isscript":false}
2018-02-03 13:49:39 [Master] [PoolSpawner] Spawned 1 pool(s) on 4 thread(s)
2018-02-03 13:49:39 [Website] [Server] Website started on 0.0.0.0:80
2018-02-03 13:49:39 [Website] [coin] Could not dumpprivkey for coin {"code":-4,"message":"Private key for address HXsajgtz6m7NzjiktUCqpKbVgHjdVE7Ekk is not known"}
2018-02-03 13:49:39 [Switching] [Setup] (Thread 1) Loading last proxy state from redis
2018-02-03 13:49:39 [Pool] [coin] (Thread 1) Share processing setup with redis (127.0.0.1:6379)
2018-02-03 13:49:39 [Pool] [coin] (Thread 1) The address provided is not from the daemon wallet - this is required for POS coins.
(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename
2018-02-03 13:49:40 [Switching] [Setup] (Thread 2) Loading last proxy state from redis
2018-02-03 13:49:40 [Pool] [coin] (Thread 2) Share processing setup with redis (127.0.0.1:6379)
2018-02-03 13:49:40 [Pool] [coin] (Thread 2) The address provided is not from the daemon wallet - this is required for POS coins.
2018-02-03 13:49:40 [Switching] [Setup] (Thread 3) Loading last proxy state from redis
2018-02-03 13:49:40 [Pool] [coin] (Thread 3) Share processing setup with redis (127.0.0.1:6379)
2018-02-03 13:49:40 [Pool] [coin] (Thread 3) The address provided is not from the daemon wallet - this is required for POS coins.
2018-02-03 13:49:40 [Switching] [Setup] (Thread 4) Loading last proxy state from redis
2018-02-03 13:49:40 [Pool] [coin] (Thread 4) Share processing setup with redis (127.0.0.1:6379)
2018-02-03 13:49:40 [Pool] [coin] (Thread 4) The address provided is not from the daemon wallet - this is required for POS coins.
원인
root@ubuntu:~/nomp# cat pool_configs/coinname.json
{
"enabled": true,
"coin": "coinname.json",
"address": "HXsaasdf6as5d4fa6s8df4sadfVE7Ekk",
"rewardRecipients": {
"HXsaasdf6as5d4fa6s8df4sadfVE7Ekk": 100
},
pool_configs/coinname.json 파일에 설정한 address 가
Coin Daemon 설치된 곳의 지갑 wallet.dat 파일의 private key 와 맞지 않아서 문제가 된 것이다.
(해당 주소로 코인을 획득하면 Coin Daemon 을 이용하여 코인을 다른 주소로 배분을 해야 하기 때문에..)
해결방법
1004lucifer
Coin Daemon 에서 사용하고 있는 wallet.dat 파일을 address 에 설정한 주소의 실제 지갑 파일로 교체를 하거나 wallet.dat 파일에서 신규 address를 추출하여
pool_configs/coinname.json 파일의 address 항목에 입력하면 된다.
참고
- https://github.com/z-classic/z-nomp/issues/202
댓글
댓글 쓰기