Btcpool Versions Save

backend of pool.btc.com

v2.3.2

5 years ago

BTCPool v2.3.2 is a release that delay the Constantinople hard fork on Ethereum mainnet.

We change the default fork height to a height that will not be reached in the near future (9999999). The user can change the height in the configuration file after the fork height is determined.

Configure the fork height

slparser.cfg

sharelog = {
  // ...
  constantinople_height = 9999999;
};

blkmaker.cfg

blk_makers = (
  {
    // ...
    constantinople_height = 9999999;
  }
);

What happened for the hard fork?

Report Discussion

About the Hardfork (the old information)

The block reward in Ethereum mainnet reduced from 3 ETH to 2 ETH. In order to apply this change, you need to upgrade your slparser and blkmaker. Then, you have to upgrade all your Ethereum nodes.

IMPORTANT: We changed the format of sharelog file (from plain structure to ProtoBuf). Please follow these suggestions to upgrade your sharelogger and slparser.


Recommended GETH Ethereum node for the hardfork: https://github.com/btccom/btcpool/tree/deveth/docker/eth-geth/v1.8.20-submit_work_detail

You need to add this in its command line option:

--override.constantinople=9999999

Recommended Parity Ethereum node for the hardfork: https://github.com/btccom/btcpool/tree/deveth/docker/eth-parity/latest

Please ensure that the version is greater than or equal to v2.3.0. Or use this command:

docker pull parity/parity:v2.3.0

You can still use the official release of GETH and the stable release of Parity, but because of the limitation in RPC eth_submitWork, blkmaker can't accurately record the hash of the submited block.

IMPORTANT: If you use eth-parity/beta-submit_work_detail or eth-geth/v1.8.15-submit_work_detail before, please DON'T FORGET upgrade and restart your blkmaker before you upgrade them. Otherwise you will not be able to submit your mined blocks and lose your mining rewards.

The old private RPC eth_submitWorkDetail in eth-parity/beta-submit_work_detail and eth-geth/v1.8.15-submit_work_detail has beed removed from eth-parity/latest and eth-geth/v1.8.20-submit_work_detail. Now the blkmaker use parity_submitWorkDetail (https://github.com/paritytech/parity-ethereum/pull/9404).

The new private RPC parity_submitWorkDetail has be contained in the official release Parity 2.2.6-beta (Dockerfile). And we created a compatible implementation of parity_submitWorkDetail in GETH v1.8.20 (Dockerfile).


Tips: The version number of BTCPool is not strict. Don't be surprised if you see other version numbers in its source or project files. :joy::joy::joy:

v2.3.1

5 years ago

BTCPool v2.3.1 is a release that enable the Constantinople hard fork on Ethereum mainnet at block 7080000.

The block reward in Ethereum mainnet reduced from 3 ETH to 2 ETH. In order to apply this change, you need to upgrade your slparser and blkmaker. Then, you have to upgrade all your Ethereum nodes.

IMPORTANT: We changed the format of sharelog file (from plain structure to ProtoBuf). Please follow these suggestions to upgrade your sharelogger and slparser.


Recommended GETH Ethereum node for the hardfork: https://github.com/btccom/btcpool/tree/deveth/docker/eth-geth/v1.8.20-submit_work_detail

Recommended Parity Ethereum node for the hardfork: https://github.com/btccom/btcpool/tree/deveth/docker/eth-parity/latest

You can still use the official release of GETH and the stable release of Parity, but because of the limitation in RPC eth_submitWork, blkmaker can't accurately record the hash of the submited block.

IMPORTANT: If you use eth-parity/beta-submit_work_detail or eth-geth/v1.8.15-submit_work_detail before, please DON'T FORGET upgrade and restart your blkmaker before you upgrade them. Otherwise you will not be able to submit your mined blocks and lose your mining rewards.

The old private RPC eth_submitWorkDetail in eth-parity/beta-submit_work_detail and eth-geth/v1.8.15-submit_work_detail has beed removed from eth-parity/latest and eth-geth/v1.8.20-submit_work_detail. Now the blkmaker use parity_submitWorkDetail (https://github.com/paritytech/parity-ethereum/pull/9404).

The new private RPC parity_submitWorkDetail has be contained in the official release Parity 2.2.6-beta (Dockerfile). And we created a compatible implementation of parity_submitWorkDetail in GETH v1.8.20 (Dockerfile).


Tips: The version number of BTCPool is not strict. Don't be surprised if you see other version numbers in its source or project files. :joy::joy::joy:

v2.1.0.1

5 years ago

Fix: if UB's root_state_hash is empty, default_root_state_hash from UB's getblocktemplate will be 00f9, and jobmaker will not put it into coinbase transaction, then UB may reject the block.

Now, any content >= 4 characters (2 bytes in binary) in default_root_state_hash will be put into coinbase transaction as a output.

v2.1.0

5 years ago

Compatible with UB hard fork in height 551111: https://github.com/UnitedBitcoin/UnitedBitcoin/wiki/Changes-of-ubtc-block-and-transaction-structure

The pre-built deb package no longer relies on librdkafka and libevent (the two libraries have been statically linked).

The latest version (master) of libevent is used to try to avoid issue #75.

How to install the pre-built deb package

The deb packages are built for Ubuntu 16.04 (x64).

All files and binaries will be put on /work/btcpool.ubtc.

# main programs
wget https://github.com/btccom/btcpool/releases/download/v2.1.0/btcpool-unitedbitcoin-2.1.0-2141362-Ubuntu16.04_x64-main.deb
dpkg -i btcpool-unitedbitcoin-2.1.0-2141362-Ubuntu16.04_x64-main.deb
apt-get install -f

# debug info (optional)
wget https://github.com/btccom/btcpool/releases/download/v2.1.0/btcpool-unitedbitcoin-2.1.0-2141362-Ubuntu16.04_x64-dbginfo.deb
dpkg -i btcpool-unitedbitcoin-2.1.0-2141362-Ubuntu16.04_x64-dbginfo.deb

Or install the with switcher version (don't use this version if you don't run a stratum switcher. Or sserver will not work properly):

# main programs
wget https://github.com/btccom/btcpool/releases/download/v2.1.0/btcpool-unitedbitcoin-withswitcher-2.1.0-2141362-Ubuntu16.04_x64-main.deb
dpkg -i btcpool-unitedbitcoin-2.1.0-2141362-Ubuntu16.04_x64-main.deb
apt-get install -f

# debug info (optional)
wget https://github.com/btccom/btcpool/releases/download/v2.1.0/btcpool-unitedbitcoin-withswitcher-2.1.0-2141362-Ubuntu16.04_x64-dbginfo.deb
dpkg -i btcpool-unitedbitcoin-2.1.0-2141362-Ubuntu16.04_x64-dbginfo.deb

v2.0.0

6 years ago

A new version of BTCPool that supports more SHA256 blockchains: Bitcoin, BitcoinCash, SuperBitcoin and UnitedBitcoin.

The source code can build at these operating systems (Ubuntu 16.04 LTS, 64 Bits is recommended):

  • Ubuntu 14.04 LTS, 64 Bits
  • Ubuntu 16.04 LTS, 64 Bits
  • macOS Sierra or later

About pre-built deb packages:

All deb packages supports only Ubuntu 16.04 LTS, 64 Bits.

The tag -withswitcher in package name means POOL__WORK_WITH_STRATUM_SWITCHER enabled when building. It means the sserver in the package MUST be used with StratumSwitcher and CANNOT be used alone.

On the other hand, the sserver in a package without -withswitcher tag CANNOT be used with StratumSwitcher.

The install prefix of these packages are /work/btcpool.[btc|bcc|sbtc|ubtc]. The install prefix of BitcoinCash is /work/btcpool.bcc for compatible with previous deployments.

The pool of Bitcoin and BitcoinCash CAN NOT share the same kafka cluster, but other chains can share. Please read the section create kafka topics in docs/INSTALL-BTCPool.md for more information.

If you encounter problems and want to debug with gdb or other debugger, you can install the debug_info package to get the complete symbol table, source code and additional debugging information.

And librdkafka1_0.9.1-1_Ubuntu16.04-x86_64.deb is a dependency of BTCPool that not be included in normal software sources. It was built from edenhill/librdkafka/debian/0.9.1-1.

v1.0.0

7 years ago