Code Monkey home page Code Monkey logo

Comments (7)

duguyifang avatar duguyifang commented on June 2, 2024

How to configure ckb mining pool, please see this issue: #378
have you started ckb-nodebridge to get work from ckb-node?

from btcpool-abandoned.

pranavt61 avatar pranavt61 commented on June 2, 2024

Nodebridge is up and creating RawJobs for kafka:
/usr/bin/nodebridge ckb --db_url mysql://root:root@mysql:3306/BTCPOOL_CKB --job_topic CkbRawGw --kafka_brokers "kafka:19092" --rpc_addr http://ckb-node:8114 --rpc_interval "2000" --solved_share_topic CkbSolvedShare

Screen Shot 2020-12-02 at 5 34 22 PM

However, I am still getting the same error. When connecting a miner.
Screen Shot 2020-12-02 at 5 34 58 PM

It seems these are the two places in the code where it is throwing errors:

src/StratumServer.cc:185
Screen Shot 2020-12-02 at 5 36 40 PM

src/ckb/StratumSessionCkb.cc:62
Screen Shot 2020-12-02 at 5 36 01 PM

from btcpool-abandoned.

duguyifang avatar duguyifang commented on June 2, 2024

it means that the sserver didn't get job from Kafka, you should check whether your jobmaker have received job and sent job to kafka or not.

from btcpool-abandoned.

pranavt61 avatar pranavt61 commented on June 2, 2024

Nodebridge is sending messages to Kafka, here is the kafka dashboard output:
Screen Shot 2020-12-02 at 5 34 22 PM

Is this the right topic?

No other topics are being populated by nodebridge, only CKBRawGw. When switching the nodebridge's --job_topic from CKBRawGw to CKBJob, I get a parsing error from BTCPool.

Here is my job_workers config:
Screen Shot 2020-12-02 at 7 29 22 PM

from btcpool-abandoned.

pranavt61 avatar pranavt61 commented on June 2, 2024

We've updated our repo so we can recreate this error more reliably with docker-compose:

https://github.com/insight-nervos/btcpool-docker-compose#local-miner

To get the docker-compose up and running with the test miner use this command:

docker-compose -f docker-compose.yml -f docker-compose.override.ckb-miner.yml up -d

Wait at least 30 seconds for all of the applications to come up and running

To make sure the miner is running, use this command:

docker-compose -f docker-compose.yml -f docker-compose.override.ckb-miner.yml logs ckb-miner

The expected output is:

Screen Shot 2020-12-08 at 6 08 41 PM

To find the error in the btcpool logs, use this command:

docker-compose -f docker-compose.yml -f docker-compose.override.ckb-miner.yml logs btcpool

The expected output is:

Screen Shot 2020-12-08 at 6 10 07 PM

The main docker compose file is here: ./docker-compose.yml

The btcpool config is located here: ./btcpool/config/sserver.cfg.

Again thank you so much for your time, any help on this issue would be greatly appreciated.

from btcpool-abandoned.

duguyifang avatar duguyifang commented on June 2, 2024

btcpool-ckb must Contain the following components:
1), nodebridge get rawjob from ckb-node and send rawjob to CkbRawGw,you can start it with the following command:
./nodebridge ckb --db_url mysql://useername:[email protected]:3306/bpool_local_db --job_topic CkbRawGw --kafka_brokers "127.0.0.1:9092" --rpc_addr http://127.0.0.1:8114 --rpc_interval "2000" --solved_share_topic CkbSolvedShare
2),,jobmaker get raw job from CkbRawGw and check the data and remove the duplicate, and then send job to CkbJob topic .
3),,sserver get job from CkbJob , and then send job to ckbminer, and when ckbminer submited a solved share ,sserver will send this share to solved_share_topic .
the cfg of jobmaker and sserver, you can find it in ckb-cfg

from btcpool-abandoned.

pranavt61 avatar pranavt61 commented on June 2, 2024

Looks like I was missing the jobmaker program in the docker-compose. Thank you!

from btcpool-abandoned.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.