I need approximately 100 Bitcoin Testnet to run an experiment on the lightning network.

Any suggestion on how to run CPU mining? Should I use cgminer? Make any sense to perform solo mining on testnet?

Currently I am running a full testnet node with bitcoind on a linux environment.

  • Maybe you can find a faucet? Here is an older but probably still appropriate answer: bitcoin.stackexchange.com/questions/29791/…
    – Eddie Dunn
    Mar 13 '19 at 16:35
  • 1
    You will have to wait until the difficulty is reset to 1, and even then, you might not be able to win a block with the flood of other blocks coming in.
    – JBaczuk
    Mar 14 '19 at 15:50

It's almost impossible to mine Testnet BTC with CPU, but there is a generatetoaddress command in Bitcoin Core:

bitcoin-cli generatetoaddress nblocks "address" ( maxtries )

If you want to continuously mine on Linux, create a bash loop:

while [ 1 ]
    bitcoin-cli generatetoaddress 1 "2N5fJkfCv4cF6vsa5QQJnsazBKWNXynn9zp" 10000000

Documentation: https://bitcoin.org/en/developer-reference#generatetoaddress

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.