If I run a miner where can I set the fee value to accept transactions in the bitcoin client?

1 Answer 1


Note that the transactions are chosen by the client you issue your getwork requests to. If you're mining in a pool, the pool chooses the transactions.

The key settings are in the main.h file. Look at MIN_TX_FEE and MIN_RELAY_TX_FEE.

To accept non-standard transactions, comment out these lines in main.cpp:

// Rather not work on nonstandard transactions (unless -testnet)
if (!fTestNet && !IsStandard())
    return error("AcceptToMemoryPool() : nonstandard transaction type")

Note that if you accept transactions with less than the normal transaction fees, you should connect to Luke Dash Jr.'s node to make sure you get such transactions, since most clients won't relay them to you. Add -addnode= to the command line you use to start your client.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.