<p>In Bitcoin, it is the miners' task to order the transactions. Thus, it is possible for a miner to pick which transactions they want to confirm. By default, they pick the ones that will provide the largest mining revenue to them, but often they will pick transactions to prioritize out of band.</p>

<p>However, you can only confirm a transaction by mining a block. That's what a confirmation is, a transaction being included in a block and thus being committed to on the blockchain.</p>

<p>However, it is infeasible for you to mine a block at home. Whatever minig power you may be able to acquire and run at home will likely not help you mine a single block in the next 1,000 years. I've elaborated here: <a href="https://bitcoin.stackexchange.com/q/41276/5406">In the ASIC-age, is it worth starting mining Bitcoin at home?</a></p>

CC BY-SA 3.0
2017-12-25T20:37:43.603Z
Can I put my own transactions first? For example I want to tell to my miner that mine this transaction first?
kodmanyagha
CC BY-SA 3.0
2017-12-25T21:16:30.410Z
Yes. If you was the miner, you could modify the default source code and so you can: (1) Pick your transaction out of the meme-pool first (2) Put only 1 transaction - your own transaction in a block....But as Murch said: You don't have any chance to mine a block yourself.
hardfork
CC BY-SA 3.0
2017-12-25T22:46:19.687Z
I don't want to mine all block. Only my own transaction. Is it possible?
kodmanyagha
CC BY-SA 3.0
2017-12-25T22:46:51.503Z
You can only confirm a transaction by mining a block. That's what a confirmation is, a transaction being included in a block.
Murch
CC BY-SA 3.0
2017-12-25T23:18:30.043Z
Miners can build custom blocks?
kodmanyagha
CC BY-SA 3.0
2017-12-25T23:21:23.300Z
Yes, miners can build custom blocks, but they still need to conform with the difficulty requirement specified by the protocol.— Maybe this will help clear up some things: https://bitcoin.stackexchange.com/q/148/5406
Murch
CC BY-SA 3.0
2017-12-25T20:23:49.660Z
2017-12-25T22:48:50.097Z
2017-12-25T22:48:50.097Z
Murch
<p>Bitcoin network is secured by two powerful protocols both of which are attack proof.</p>

<p>First of all for not allowing anybody adding arbitrary transaction in the blockchain; you should do a proof of work calculation which takes 1000 years on a single PC. doing such an intense calculation is so expensive and does not defer between accepting one transaction or thousand of transaction. so miners prefer to put as much as they could in a single mined block to gets more bitcoin from overall transaction fees. dont forget: you cannot 'mine' a transaction without putting it in a block, and you cannot mine a block without doing the proof of work calculation.</p>

<p>secondly and more importantly, generated block should be accepted by other full nodes of the network. so if you generate a block containing a transaction without enough evidence from signature of sender; they would refuse from accepting your block and that block would be worthless.</p>

<p>these two things helps bitcoin philosophy to secure its independence from being raped by any kind of filtering boycott or sanctions.</p>

CC BY-SA 3.0
2018-04-03T21:55:47.333Z
I'm downvoting this answer, because it doesn't address the main concerns of the question it is posted on.
Murch
CC BY-SA 3.0
2018-04-02T19:44:43.437Z
2018-04-02T19:44:43.437Z
Mohammad-Sohrab Sameni
<p>I'm looking to cgminer software (<a href="https://github.com/ckolivas/cgminer" rel="nofollow noreferrer">https://github.com/ckolivas/cgminer</a>) for understand that how mining works. It is difficult to understand and there are lots of codes. For this I'm asking this question here.</p>

<p>Is it possible that can I confirm a specific transaction? For example I sent a bitcoin from my address to other address and it generates a transaction ID. Can I pass this transaction id to my custom solo miner and it confirms it. Is it possible?</p>

<p>Is there a software that mines custom transaction seems like:</p>

<pre><code>myOwnGPUorCPUMiner -tx [my custom transaction id]
</code></pre>

<p>It will confirm my transaction and finished or continues to mine other transactions. (This code is just an example)</p>

CC BY-SA 3.0
2017-12-25T20:08:15.570Z
Possible duplicate of https://bitcoin.stackexchange.com/q/16867/5406
Murch
CC BY-SA 3.0
2017-12-25T20:14:01.033Z
It question seems like to mine but I'm actually asking that how to write codes for this purpose.
kodmanyagha
CC BY-SA 3.0
2017-12-27T09:26:56.560Z
I agree with Murch. Code or no code, this is not a question of confirming a transaction but mining a full block that includes said transaction. Current difficulty does not allow for such activity by mining solo.
gosuto
<solo-mining>
How to confirm custom transaction with solo mining?
kodmanyagha
# How to confirm custom transaction with solo mining?

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

I'm looking to cgminer software (<https://github.com/ckolivas/cgminer>) for understand that how mining works. It is difficult to understand and there are lots of codes. For this I'm asking this question here.

Is it possible that can I confirm a specific transaction? For example I sent a bitcoin from my address to other address and it generates a transaction ID. Can I pass this transaction id to my custom solo miner and it confirms it. Is it possible?

Is there a software that mines custom transaction seems like:

```
myOwnGPUorCPUMiner -tx [my custom transaction id]

```

It will confirm my transaction and finished or continues to mine other transactions. (This code is just an example)

**Tags:** solo-mining

> **Comments:**
> **username_1**: Possible duplicate of https://bitcoin.stackexchange.com/q/16867/5406  
> **username_0**: It question seems like to mine but I'm actually asking that how to write codes for this purpose.  
> **username_2**: I agree with username_1. Code or no code, this is not a question of confirming a transaction but mining a full block that includes said transaction. Current difficulty does not allow for such activity by mining solo.  

---

## 2 answers

### Answer by username_1 on 2017-12-25. Score: 2

In Bitcoin, it is the miners' task to order the transactions. Thus, it is possible for a miner to pick which transactions they want to confirm. By default, they pick the ones that will provide the largest mining revenue to them, but often they will pick transactions to prioritize out of band.

However, you can only confirm a transaction by mining a block. That's what a confirmation is, a transaction being included in a block and thus being committed to on the blockchain.

However, it is infeasible for you to mine a block at home. Whatever minig power you may be able to acquire and run at home will likely not help you mine a single block in the next 1,000 years. I've elaborated here: [In the ASIC-age, is it worth starting mining Bitcoin at home?](https://bitcoin.stackexchange.com/q/41276/5406)

> **Comments:**
> **username_0**: Can I put my own transactions first? For example I want to tell to my miner that mine this transaction first?  
> **username_3**: Yes. If you was the miner, you could modify the default source code and so you can: (1) Pick your transaction out of the meme-pool first (2) Put only 1 transaction - your own transaction in a block....But as username_1 said: You don't have any chance to mine a block yourself.  
> **username_0**: I don't want to mine all block. Only my own transaction. Is it possible?  
> **username_1**: You can only confirm a transaction by mining a block. That's what a confirmation is, a transaction being included in a block.  
> **username_0**: Miners can build custom blocks?  
> **username_1**: Yes, miners can build custom blocks, but they still need to conform with the difficulty requirement specified by the protocol.— Maybe this will help clear up some things: https://bitcoin.stackexchange.com/q/148/5406  

---

### Answer by username_4 on 2018-04-02. Score: -1

Bitcoin network is secured by two powerful protocols both of which are attack proof.

First of all for not allowing anybody adding arbitrary transaction in the blockchain; you should do a proof of work calculation which takes 1000 years on a single PC. doing such an intense calculation is so expensive and does not defer between accepting one transaction or thousand of transaction. so miners prefer to put as much as they could in a single mined block to gets more bitcoin from overall transaction fees. dont forget: you cannot 'mine' a transaction without putting it in a block, and you cannot mine a block without doing the proof of work calculation.

secondly and more importantly, generated block should be accepted by other full nodes of the network. so if you generate a block containing a transaction without enough evidence from signature of sender; they would refuse from accepting your block and that block would be worthless.

these two things helps bitcoin philosophy to secure its independence from being raped by any kind of filtering boycott or sanctions.

> **Comments:**
> **username_1**: I'm downvoting this answer, because it doesn't address the main concerns of the question it is posted on.  

---

