Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Bitcoin Essentials

You're reading from   Bitcoin Essentials Gain insights into Bitcoin, a cryptocurrency and a powerful technology, to optimize your Bitcoin mining techniques

Arrow left icon
Product type Paperback
Published in Feb 2016
Publisher
ISBN-13 9781785281976
Length 130 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Albert Szmigielski Albert Szmigielski
Author Profile Icon Albert Szmigielski
Albert Szmigielski
Arrow right icon
View More author details
Toc

Mining with Bitcoin Core

The Bitcoin Core wallet has built-in capabilities for mining; therefore, it is really easy to use the wallet to mine on your machine. The wallet will use your CPU to mine. As you might recall, mining is basically hashing of a candidate block over and over again until the result is smaller than the current difficulty threshold.

To mine with your CPU and Bitcoin Core, open up the wallet software:

  1. Now click on the Help menu and select Debug Window.
  2. Then click on the Console tab—the console will appear. Remember, to see a list of all available commands, type help and press Enter.

The command to mine with your wallet is setgenerate. The syntax of the command is as follows:

setgenerate <true|false> <number of cores to be used>

To start mining with only 1 core, type setgenerate true 1:

Mining with Bitcoin Core

Fig. 2.1: Starting mining in Bitcoin Core

To make sure that your wallet is mining, you can go to your Task Manager in Windows, Activity Monitor in Mac OS, or System Monitor...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image