To turn on (CPU) mining in the Veil wallet:
1. Wait until wallet is fully synced with the blockchain.
2. In the Debug Console type
generatecontinuous true 4
or substitute however many CPU cores (in the above case, it is 4) you dare to dedicate to the mining process. The wallet will automatically and silently create a special mining address and mining rewards will automatically be generated in that address.
The way Veil works, these coins will also automatically be converted into Zerocoin veil, which will then automatically begin Staking, generating rewards based on the coins you hold, and not depending on devoting computing "hash" power to the effort.
To turn off mining in the Veil wallet, In the Debug Console type:
To mine with one or more Graphics Processing Units (GPU) you will need special, third-party software written to support:
- Your Operating System.
- Your particular GPU (brand and model).
- The particular mining algorithm and coin being mined. For Veil this meant from January 2019 to October 2020 the X16RT algorithm. From November 2020 Veil has three mining algorithms with their own specific share of the blocks to win.
- The easiest to mine, allocated 10% of Proof of Work blocks to be won (that is 5% of all Veil blocks) is SHA256D, which at present (December 2020) can be CPU mined on ordinary personal computers. Specify the number of CPU cores you have, ensuring you leave at least an entire core free for other processes. On a six core late-2013 Mac Pro I leave two XEON cores free, and my computer runs seemingly effortlessly.
- Next we have RandomX, allocated 20%, which also can be mined on regular computers, but appears to be more demanding. You must use at least four threads for RandomX. A wallet software update in December 2020 ensures that no less than four are used, and warns if too many are attempted. If no algo is chosen in the Veil conf file, RandomX will be chosen by default.
- Finally, we have allocated 70% of PoW blocks to a GPU-mining algorithm, ProgPOW (Programmatic Proof of Work) requiring a GPU (Graphic Processing Unit) card with 6 GB of (GPU) RAM.
ProgPOW is mined using mining software such as WildRig.
Essential knowledge for miners can be found in the Veil Discord #mining channel. Look for the pinned posts there and the links on the main Veil website's mining page. Mining pools exist for ProgPOW.
- It is generally agreed that mining by yourself (solo mining) is not the best strategy, but that you should join a mining pool which generates blocks for validation and possible acceptance by a majority of other computers running Veil software, and which then shares the winnings proportionally with the participants in the mining pool according to the hash power they are contributing. In November 2020 solo mining has been profitable, but expected increase in competition may see mining pool usage increase.
- If you are mining in separate mining software you need to create within the Veil wallet a special mining address that can receive the shared winnings from your mining pool.
In the Debug Console type
If you are mining inside the Veil wallet, such as with SHA256D or RandomX your mined rewards will appear in your wallet without you needing to specifying an address.
- With the change in mining algorithms other handy commands have been added.
The chosen mining algorithm is normally set in your veil.conf file: eg. mining=sha256d
The default is mining=randomx and the other alternative is mining=progpow (but that is unlikely to be used, as ProgPOW mining is done by your external software.)
The mining algo can be changed without stopping the wallet, by
You can check your mining algo with
You have to turn off mining first, (with generatecontinuous false), but it will let you know if you have not. Don't forget to turn mining back on with
generatecontinuous true 4
Discussion and community support for various mining strategies and technical problems is available on the VEIL-Project Discord server in the #mining channel.