Bitmark Mining Guide
An overview of how to mine BTMK and contribute to the network's security.
Solo Mining with the Reference Node
The Bitmark reference node/wallet is capable of solo mining directly. To start mining, use the following command in the node's console:
setgenerate true <num_cpus> <num_algo>
Example: setgenerate true 4 0
would start mining on 4 CPU cores using the SCrypt algorithm (ID 0).
To stop mining, use setgenerate false
.
Proof-of-Work Algorithms
Bitmark utilizes 8 different Proof-of-Work (PoW) algorithms to add blocks to its blockchain. This multi-algo approach enhances network security and allows for a diverse range of hardware to participate in mining. Many of these algorithms can be merge-mined with other coins.
Proof of Work Algorithm | pow_algo_id |
Merge-Mineable with… | cpuminer-multi name |
---|---|---|---|
SCrypt | 0 | Digibyte, Litecoin, etc. | scrypt |
SHA256d | 1 | Bitcoin, Bitcoin Cash, etc. | sha256d |
Yescrypt | 2 | Unitus, Myriadcoin, etc. | yescrypt |
Argon2d | 3 | Argentum, Unitus | ar2 |
X17 | 4 | Verge, Shield, etc. | x17 |
Lyra2REv2 | 5 | Unitus, Vertcoin, etc. | lyra2rev2 |
EquiHash | 6 | ZCash, Horizen, etc. | equihash *special executable needed* |
CryptoNight | 7 | Monero, etc. (check variants) | cryptonight |
In order to achieve a consistent block time with 8 algorithms contributing, each algorithm's mining difficulty is independently governed by DGWv3 to target a 16-minute block time per algorithm (Beta = 960 seconds). This results in an overall network block time of approximately 2 minutes.
Setting the Mining Algorithm
You can set the mining algorithm for the reference node using two methods:
Method 1: Command-Line
You can set the mining algorithm manually via the command-line client bitmark-cli
. Here is an example setting the algorithm to Argon2d (ID 3):
bitmark-cli setminingalgo 3
Method 2: Configuration File
You can also set the algorithm by adding a line to your bitmark.conf
file, typically located at ~/.bitmark/bitmark.conf
:
miningalgo = 3
Important Note: The configuration file parser (bitmark.conf
) only recognizes the numeric codes for the Proof-of-Work algorithm (the pow_algo_id
).