backend of pool.btc.com
Fixed:
New features:
It is recommended to use our branch: https://github.com/btccom/beam/commits/mining-hard-fork
Or use the docker file: https://github.com/btccom/btcpool/tree/master/docker/beam-node/main-release-mining
Using the official branch will encounter a high stale risk when submitting blocks (because it only temporarily stores 3 mining tasks). You may lose your block and rewards.
In addition, our branch can return real block hashes when submitting solutions (If the official branch is used, only the pow hash will be recorded in the database for poolwatcher
).
We have written some patches that allow you to launch a beam node that has the similar configuration of mainnet and the fork height is 50: https://github.com/btccom/beam/tree/private-testnet-hard-fork
A new field forkheight
is added to the response of login
.
{"id":"login","jsonrpc":"2.0","method":"result","nonceprefix":"010200","code":0,"description":"Login successful"}
{"id":"login","jsonrpc":"2.0","method":"result","nonceprefix":"010200","code":0,"description":"Login successful","forkheight":321321}
We have tested our sserver
with Official OpenCL Miner
.
Here is a document about VCash/Namecoin/RSK merged mining: MergedMining.md
SO_REUSEPORT
).Beam poolwatcher: If beam-node supports it, write the real block hash instead of pow hash to the database.
Use this beam node to response the real block hash to poolwatcher: https://github.com/btccom/beam/tree/mining-btccom Or docker: https://github.com/btccom/btcpool/tree/master/docker/beam-node/main-release-mining
如果sserver为legacy分支,则UB分叉后从ShareBitcoinBytesV1转换过来的share的高度依然会被设置为758000,导致块奖励不正确。
该提交临时修复这个问题。如果时间大于UB分叉点(2019-05-24 17:37:20 UTC+8),则转换时将块高设为815000。 此外,为了使以前的sharelog也能得到正确的PPS收益记录,在ShareBitcoin::isValid()调用时会检查块高为758000的share的产生时间是否大于UB分叉点,如果大于,则将块高改为815000,使slparser能正确记录收益。
UnitedBitcoin hard fork on height 813500:
Change current block reward to 0.5 (reduce to 50% of former reward),then the total supply is about 18,780,000. https://github.com/UnitedBitcoin/UnitedBitcoin/releases
Fix some bugs:
sserver
will exit with SIGPIPE.job not found
.