TUBE mining guide
What is mining and why is it important?
Cryptocurrency mining is an activity that secures a blockchain network. Miners dedicate vast amounts of computing power using CPUs, GPUs and specialized hardware to solve the hash that belongs to the next block of the chain. This is called ‘finding a block’ and miners earn a reward for their effort. Miners compete against each other to find the most blocks. Those who commit more hashing power will find more blocks in a statistically deterministic fashion. For TUBE and most other CryptoNight coins, the difficulty of finding the next block is adjusted continuously so blocks are found roughly every 120 seconds.
Mining secures the network because a malicious actor will require the majority of the network hash rate to attempt to manipulate transactions in a so-called ‘51% attack’. The bigger the network, the more expensive it is to execute such an attack. Additionally, more miners mean that the block reward will be shared among more users, reducing profitability and increasing the production cost and therefore arguably the inherent (thermodynamic) value of the coin.
Should I be mining?
Mining TUBE is only profitable on GPUs (graphics cards) depending on electricity cost. The proof-of-work is memory-intensive and cards with 4 GB VRAM or more are required for good performance. For the current mining profitability of coins, check out https://www.cryptunit.com.
It is not recommended to mine on laptops or tablet devices. Mining uses considerable power and portable devices like these are not built for 24/7 sustained workloads. They lack proper cooling and you run the risk of overheating resulting in a reduced lifespan.
What are mining pools?
Furthermore, as more people start mining a certain coin, it becomes increasingly difficult for small miners to compete with the rest of the network. Since actual blocks found by small miners will be far and few between, block reward payouts become very irregular. This is why mining pools exist. Here, a large number of miners bundle their hashing power to find blocks for the pool, while each miner receives regular payouts corresponding to their relative contribution of hashing power. This ensures that small miners will receive regular payouts, whether they find blocks or not.
You can find a list of active TUBE mining pools here. All pools have roughly the same layout. They provide instructions on how to start mining under ‘Get started’ or similar. Each pool allows you to calculate mining profits based on your hash rate and track your payout history and mining statistics by filling in your wallet address.
How are rewards configured? Is there halving?
Block reward depends on how many TUBE coins have been mined already: the gradual increase in circulating supply will gradually reduce the block reward. Emission decrease is smooth: there is no halving for TUBE.
Block reward will be reduced also when the block size is bigger than a certain threshold. When this happens, you will see a reward-penalty in the block information.
You can check the latest block reward in the BitTube Blockchain Explorer.
Please see our Github repository if you want to know what the current configuration of any specific parameter is in our blockchain.
How to mine TUBE?
Download the miner
You can mine TUBE with several software packages:
- Official BitTube miner (recommended): https://github.com/ipbc-dev/bittube-miner/releases OS support: Windows, Mac, Linux. Based on xmr-stak, the configuration is similar. CUDA support for Nvidia users (184.108.40.206+).
- xmr-stak by fireice: https://github.com/fireice-uk/xmr-stak/releases OS support: Windows. 2% developer fee. CUDA support for Nvidia users (2.4.6+).
- Other third-party miners: CastXMR, SRB Miner, xmrigCC,… Find the download links at https://mining.bittubeapp.com/#getting_started
Setup the miner
This guide will focus on the official BitTube miner. The installation and configuration are largely identical to the xmr-stak miner by fireice. However, the latter does not feature a beginner-friendly non-expert option to start mining directly to the web wallet.
Expert mode: setting everything up yourself
Tutorial video done by BitTube community: How-To Mine BitTube on XMR STAK 2.4.7
Edit configuration of the miner.
Inside the installation folder, you will now find additional text files storing your configuration: config.txt, cpu.txt, pools.txt and amd.txt/nvidia.txt, expert.json.
If something went wrong with the setup process and you need to start over, you can simply delete all these configuration text files and run bittube-miner.exe again.
Setting startup parameters (optional)
Mining TUBE is only efficient on GPUs. To make sure your CPU cores are not mining too, you can disable CPU support using a batch file with startup parameter –noCPU (two dashes).
- Create a new file named start_nocpu.bat using notepad.
- Save As → All types.
start /b bittube-miner –noCPU
If you are an AMD user, it is recommended to include additional driver-related parameters to the batch file to improve performance, like so:
setx GPU_FORCE_64BIT_PTR 1 setx GPU_MAX_HEAP_SIZE 100 setx GPU_MAX_USE_SYNC_OBJECTS 1 setx GPU_MAX_ALLOC_PERCENT 100 setx GPU_MAX_SINGLE_ALLOC_PERCENT 100
start /b bittube-miner –noCPU
For xmr-stak, the advice is the same and you should just change “bittube-miner” to “xmr-stak” inside the batch file.
Checking your hash rate and pool payments.
When the miner is running, pressing h will display your current hash rate. To check your pending balance and payout history of the pool, navigate to the pool web page and enter your wallet address under Your Stats and Payment History.
The pending balance will be paid when the pool-specific payout threshold is reached. Under Last Share Submitted, it should indicate whether your shares are being accepted successfully.
The following errors are quite common:
- MEMORY ALLOC FAILED: VirtualAlloc failed.
- Error CL_OUT_OF_RESOURCES when calling clEnqueueNDRangeKernel for kernel 0.
Make sure your OS’s virtual memory (page file) is at least the total amount of VRAM of all graphics cards combined. For example, 4x 8GB RX 580s will require a 32GB page file to avoid this error.
For Windows machines:
→ Control Panel → System and Security → System → Advanced system settings → Advanced tab → Performance → Settings → Advanced tab → Virtual memory → Change → Custom size → Set → OK → Reboot (mandatory)