<p>I suggest you go and read about just what <code>cgminer</code> is presented with, in most cases it is just the header which has absolutely no bearing on the content of the block. It does not, and can not in most situations know what the work it has been provided with actually is. </p>

<p>The node providing work must be modified slightly by changing the <code>isStandard</code> checks, which you can find in <code>main.cpp</code> of the Bitcoin core client. There's not really that much interesting you can do at present without making your block invalid, but it's easier just to submit them directly to eligius.st which is a pool that already accepts certain nonstandard transactions. The chance of a user solo mining a block is vanishingly tiny at this point. </p>

CC BY-SA 3.0
2014-02-13T21:54:50.503Z
2014-02-13T21:54:50.503Z
user13413
<p>Is there a way to configure <code>cgminer</code> to accept valid but nonstandard transactions for mining?</p>

<p>If not, where, theoretically, would be a good place to look if I was interested in mining nonstandard transactions into the blockchain, i.e. what must I modify in what node/client code?</p>

<p>Alternatively, would it be enough to modify a client to relay such transactions to <code>cgminer</code> without modifying the mining package itself? Does <code>cgminer</code> also verify that a transaction is standard?</p>

<development><cgminer><transaction-selection><non-standard-transaction><relay>
Mine valid but nonstandard transactions
rocketas
# Mine valid but nonstandard transactions

(Asked by: username_0 on 2014-02-13)

Is there a way to configure `cgminer` to accept valid but nonstandard transactions for mining?

If not, where, theoretically, would be a good place to look if I was interested in mining nonstandard transactions into the blockchain, i.e. what must I modify in what node/client code?

Alternatively, would it be enough to modify a client to relay such transactions to `cgminer` without modifying the mining package itself? Does `cgminer` also verify that a transaction is standard?

**Tags:** development, cgminer, transaction-selection, non-standard-transaction, relay


---

## 1 answers

### Answer by username_1 on 2014-02-13. Score: 1 | Accepted answer

I suggest you go and read about just what `cgminer` is presented with, in most cases it is just the header which has absolutely no bearing on the content of the block. It does not, and can not in most situations know what the work it has been provided with actually is.

The node providing work must be modified slightly by changing the `isStandard` checks, which you can find in `main.cpp` of the Bitcoin core client. There's not really that much interesting you can do at present without making your block invalid, but it's easier just to submit them directly to eligius.st which is a pool that already accepts certain nonstandard transactions. The chance of a user solo mining a block is vanishingly tiny at this point.


---

