Closed bxlkm1 closed 5 years ago
ckb挖矿类似于别的币种,不同之处在于:使用nodebridge代替blkmaker和gwmaker,负责从ckb节点获取挖矿任务和提交爆块信息,nodebridge位于btcpool/rust目录.
cd rust && cargo build --release
./nodebridge ckb --db_url mysql://useername:password@127.0.0.1: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
ckb-jsonrpc-types = { git = "https://github.com/nervosnetwork/ckb", tag = "v0.22.0" }
ckb-types = { git = "https://github.com/nervosnetwork/ckb", tag = "v0.22.0" }
@duguyifang 多谢指导,正好在部署测试中。
ckb挖矿类似于别的币种,不同之处在于:使用nodebridge代替blkmaker和gwmaker,负责从ckb节点获取挖矿任务和提交爆块信息,nodebridge位于btcpool/rust目录.
nodebridge
cd rust && cargo build --release
./nodebridge ckb --db_url mysql://useername:password@127.0.0.1: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
注意问题
ckb-jsonrpc-types = { git = "https://github.com/nervosnetwork/ckb", tag = "v0.22.0" }
ckb-types = { git = "https://github.com/nervosnetwork/ckb", tag = "v0.22.0" }
应与当前所使用的ckb节点代码版本一致