32

One of the most common reasons for which miners go offline is when their profitability drops below the cost of electricity - this could either be the result of the BTC price dropping, or their local operating costs (costs including air conditioning, power, networking, hardware depreciation, etc.) rising, or the total network hashrate rising faster than they ...


23

Bitcoin Core does have mining components in it. In fact most available mining software actually rely on Core (or something abstracting Core's services) in order to get the block built before it attempts to mine it. Bitcoin Core has the capability to serve the information to other software so that they can mine blocks. Furthermore, Bitcoin Core does have the ...


15

You're using the wrong hash algorithm for Bitcoin mining. Bitcoin uses SHA256d (d = double), but cpuminer (at least the version 2.3.2 on my system) defaults to scrypt (for Litecoin) instead: -a, --algo=ALGO specify the algorithm to use scrypt scrypt(1024, 1, 1) (default) sha256d SHA-256d Slush's pool ...


12

Alright, I finally managed to fix my bugs and get a full roundtrip. Here is an example for a full communication with a Pool. I don't explain everything in detail as the API description can be found elsewhere. a) Suscription {"id": 1, "method": "mining.subscribe", "params": []} {"error": null, "id": ...


10

If I recall it correctly, the "boo"s mean: your answer's correct but somebody else had solved the problem before, so you wasted your electricity and time - sorry. And the "yay"s are: you did it first, congrats. As for "LongPoll", it's a protocol that enables a miner to keep in touch with its pool's servers so that it's communicated as soon as possible when ...


10

You cannot. The mining functionality was removed in version 0.13.0 since it was hopelessly inefficient. See Since which version the mining functionality removed from wallet? It is not practical to mine Bitcoin without recent specialized ASIC hardware. See In the ASIC-age, is it worth starting mining Bitcoin at home?


10

Is the native Bitcoin client intended for mining? No. Long long A decade or so ago, back in the mists of time, in prehistoric days when dinosaurs roamed the earth, early versions of the Bitcoin software did indeed include a mining capability that used the pitiful capabilities of CPUs. But this function has long been rendered defunct by the advance of ...


8

Tim S. pretty much covered it, but I wanted to 2 great resources which have been very helpful for myself and many others: Ken Shirriff's blog has a few Bitcoin mining related posts which use Python code to great effectiveness; whilst Bitcoin Mining The Hard Way is probably the most useful, there's also some novel use cases where Ken tries Bitcoin mining by ...


7

I'm not sure that a guide as basic as you describe is even possible. It depends on what exactly you mean. Mining itself isn't too complicated to read and understand, but writing a start-to-end app that can be used for mining means writing a full node. That is very complicated. Writing a Bitcoin miner from start to end involves not only collecting ...


6

To be honest, you came in a little too late. Mining is now done by ASIC's (Application Specific Integrated Circuit). These are chips (like the ones Intel and AMD make) that are only capable of hashing SHA-256. These chips are very limited (they can't run any other software), but can do what they were made to do extremely fast. An Intel 'universal' CPU can ...


6

The behaviour of the mempool or orphan tx pool should not influence the validity of blocks at all. When a block comes in: main.cpp:ProcessMessage deals with processing messages, and dispatches to: main.cpp:ProcessNewBlock deals with specifically processing block messages, which stores it on disk using AcceptBlock and then calls: main.cpp:ActivateBestChain ...


5

MacMiner is the first and best native Mac GUI for bfgminer, cgminer and cpuminer MacMiner website


5

bfgminer is a fork of cgminer. bfgminer allows the use of Get Block Template (less trust in the pool), but they're otherwise functionally the same.


5

Are there any more reasons why a miner might switch off his/her system given that the complete process is automated? I can think of a few more reasons a mining operation would be disrupted, they are perhaps more rare, but possible: The miner loses access to the electricity needed to run the mining ASICs. For example, if a mining operation is capturing ...


4

The first official mining software was Bitcoin Core (then known simply as Bitcoin, later bitcoin-qt), and it still serves as a reference mining implementation, making it the "official" miner. See its miner.cpp file, for example. Bitcoin Core uses your CPU to mine. Mining eventually moved to GPUs and ASICs, so that mining on a CPU is practically pointless ...


4

One of the very fist GPU miners was in java using OpenCL. It was called DiabloMiner and you can find the source here;- https://github.com/Diablo-D3/DiabloMiner It hasn't been updated the the past two years but it is still fully functional.


4

The only two that I know of are cgminer and bfgminer. Unless you have specialized mining equipment (read: ASICs) or mining on testnet, mining is not going to be a good idea.


4

Firstly, correct me if I'm wrong. When a miner finds a solution for the block and broadcasts it to the other node, all the other nodes verify if it is a correct solution or not. It's very trivial to validate the PoW, just hash the block header and then count how many "leading zeros" that hash contains (note that such description is theoretical. ...


3

You can, of course! But you may start from some existing programs that do what you say, most are open source and well documented. And ask someone, it's very hard to do it on your own!


3

You shoud instead use cudaminer for this. I use the same card and I have a mining rate of 150khash. The reason why you get a low mining rate is because Nvidia cards use CUDA cores to do most of their calculation and most of the miners do not use them since the best graphic cards for mining are AMD cards (and they do not have CUDA cores). I dont know where ...


3

try using stratum+tcp:// instead of http:// protocol. ./minerd --algo scrypt --scantime 33 --url stratum+tcp://[server]:[port] --userpass [username]:[password] --threads 1 --retries -1 -P works pretty well for me right now. minerd is from http://optimate.dl.sourceforge.net/project/cpuminer/pooler-cpuminer-2.3.2-linux-x86_64.tar.gz


3

The original question was [sic] "What is the fastest CPU miner that I could use". Based on the answers, it seems, that everyone by default went to cpuminer/minerd. I use it also. However... bfgminer (all except the latest version) has the ability to be used as a cpu miner. I have not been able to optimize mine yet but I do know that it is an incredibly ...


3

If you want to run a command line client such as cgminer, bfgminer or cpuminer (minerd) without compiling them yourself you can download MacMiner from http://macminer.fabulouspanda.com/macminer/ and run them in the Terminal like so: cd /Applications/MacMiner.app/Contents/Resources/bfgminer/bin ./bfgminer -o http://your.pool.com:9332 -u username -p password ...


3

GPUs are obsolete for mining. You won't get any reward worth even close to your electricity and hardware degredation cost. This has been true for over a year at least. CPUs are 1000x more wasteful. You're too late to the home-mining game.


3

When you run 32-bit versions of software on 64-bit systems in Windows the applications are executed a bit slower than they would in a 32-bit system mainly because of the WoW64 subsystem that emulates the 32-bit environment. On top of that, if your mining software requires lots of physical memory, the 4 GB barrier on the 32-bit architecture (or the 32-bit ...


3

You can use your GPU to mine, but it is going to mostly be a waste of time and energy now that there is specialized hardware (ASICs) to mine. You need a piece of software that will allow you to mine with your GPU. The miner built into Bitcoin Core is only for CPU mining. Check out this page on the wiki. The exact software you choose will depend on a number ...


3

You are limited by your machine clock speed and hashing library performance. Scripting langs are not a good choice for CPU intensive operations. Also, you are doing hashes sequentially, try multiprocessing: https://docs.python.org/2/library/multiprocessing.html


3

I almost hate to provide a second answer to pair against RedGrittyBrick's beautifully worded answer, but there is a consideration that matters here beyond that of Mhash/s: profitability. Most people run a miner for profit. Not many people are out there running miners just for the philosophical principle behind bitcoin. The ASIC miners are extraordinarily ...


2

Been using the Open Source MacMiner for over a month...:-) This mining GUI is mining engine agnostic because it natively supports bfgminer, cgminer and cpuminer/(minerd) under the hood on Mac Platforms. This GUI interface is mining pool agnostic because it can effectively interface to centralized pools and natively supports decentralized pooling, i.e., ...


2

Download the bfgminer source code, extract the source, change directory into it. Then: $ dpkg-buildpackage -uc -us -rfakeroot And it'll build a package you can install on Debian Wheezy. You will need to install "dpkg-dev" for dpkg-buildpackage and all the build dependencies, which you'll find out by running the dpkb-buildpackage command.


Only top voted, non community-wiki answers of a minimum length are eligible