<p>For this task you do not go solo but using an agent in between called the 
<a href="https://en.bitcoin.it/wiki/Stratum_mining_protocol" rel="nofollow noreferrer">Stratum</a></p>

<p>The node itself is supporting a custom script walletnotify which is executed whenever there is a new transaction found on the network. Then one could customise his stratum code to decide which tx actually to mine (per default they would sort them by the fees) or which ones to ignore. </p>

CC BY-SA 3.0
2017-12-14T13:25:56.253Z
2017-12-14T13:25:56.253Z
Michael Polzer
<p>I am just tinkering. Trying to learn how things work. So making money is not even on my radar at the moment.</p>

<p>Because I am just in the learning stage, I am using CPUMiner on my Ubuntu 17.10 laptop. It was easy to install and get it running against my bitcoin-qt install on the same machine.</p>

<p>So I am already running a full bitcoin node and the miner and it is doing work. I can see that things are moving around.</p>

<p>What I am really struggling to figure out is how blocks are created.</p>

<p>I read everywhere that the full node spits out the work to be done but the miner decides how to prioritize that work so most people work on the node with the largest fee first. That makes sense. But how is that being decided? Where are the rules configured to determine if I want to discard some transactions and process others?</p>

<p>For example, if I really don't care how much money I make and I simply want to process the oldest transactions first (maybe those that have a low fee) just to be helpful, how do I make that happen?</p>

<p>How do I tell either bitcoin-qt or cpuminer (minerd) what my preferences are for what to invest my efforts in?</p>

<p>With this system, there is no chance of making any money but if I can understand the process better and see how it works in the real world and how I can configure it, then I can decide how to scale up (or not).</p>

<p>Thanks!</p>

<miner-configuration>
How to prioritize bitcoin transactions when solo mining using CPUMINER?
Glenn J. Schworak
# How to prioritize bitcoin transactions when solo mining using CPUMINER?

(Asked by: username_0 on 2017-12-14)

I am just tinkering. Trying to learn how things work. So making money is not even on my radar at the moment.

Because I am just in the learning stage, I am using CPUMiner on my Ubuntu 17.10 laptop. It was easy to install and get it running against my bitcoin-qt install on the same machine.

So I am already running a full bitcoin node and the miner and it is doing work. I can see that things are moving around.

What I am really struggling to figure out is how blocks are created.

I read everywhere that the full node spits out the work to be done but the miner decides how to prioritize that work so most people work on the node with the largest fee first. That makes sense. But how is that being decided? Where are the rules configured to determine if I want to discard some transactions and process others?

For example, if I really don't care how much money I make and I simply want to process the oldest transactions first (maybe those that have a low fee) just to be helpful, how do I make that happen?

How do I tell either bitcoin-qt or cpuminer (minerd) what my preferences are for what to invest my efforts in?

With this system, there is no chance of making any money but if I can understand the process better and see how it works in the real world and how I can configure it, then I can decide how to scale up (or not).

Thanks!

**Tags:** miner-configuration


---

## 1 answers

### Answer by username_1 on 2017-12-14. Score: 0 | Accepted answer

For this task you do not go solo but using an agent in between called the
[Stratum](https://en.bitcoin.it/wiki/Stratum_mining_protocol)

The node itself is supporting a custom script walletnotify which is executed whenever there is a new transaction found on the network. Then one could customise his stratum code to decide which tx actually to mine (per default they would sort them by the fees) or which ones to ignore.


---

