bitcoin-pow / BitcoinPoW

BitcoinPoW
https://bitcoin-pow.org
MIT License
16 stars 6 forks source link

Create a multi-threaded miner #11

Closed bitcoin-pow closed 8 months ago

bitcoin-pow commented 8 months ago

Add a multi threaded miner to the wallet. This will allow one blockchain and save much space. It is also more convenient.

bitcoin-pow commented 8 months ago

critical sections are on a wallet basis, so trying to gather all utxos and split them evenly does not fit nicely in the given architecture. The best approach is to mine on a new thread per wallet.dat. Turns out the code already supports a new mining thread per wallet.dat. In the QT, go to File->Open Wallet and select the wallet. Repeat and add as many wallets as your system can handle. A new thread is created for each wallet. This drastically reduces the hard disk consumption and also reduces memory by about 50%. When mining using the powd, just add the wallets to the settings.json file.

This feature request will be marked resolved.