<p>A miner can choose whichever (valid) transactions they’d like to include in a block, for any reason they’d like. </p>

<blockquote>
  <p>I understand transactions with higher fees are given priority.</p>
</blockquote>

<p>Generally, yes, we would assume a rational miner would maximize the amount of fees they can possibly obtain. But this is not mandatory. </p>

CC BY-SA 4.0
2018-12-05T17:17:56.663Z
2018-12-05T17:17:56.663Z
chytrik
<p>How does a miner choose which transactions go into the next block?
Do all transactions go through or is there a lottery process? I understand transactions with higher fees are given priority.</p>

<transaction-selection>
How does a miner choose which transactions go into the next block?
john martin
# How does a miner choose which transactions go into the next block?

(Asked by: username_0 on 2018-12-05)

How does a miner choose which transactions go into the next block?
Do all transactions go through or is there a lottery process? I understand transactions with higher fees are given priority.

**Tags:** transaction-selection


---

## 1 answers

### Answer by username_1 on 2018-12-05. Score: 3

A miner can choose whichever (valid) transactions they’d like to include in a block, for any reason they’d like.

> I understand transactions with higher fees are given priority.

Generally, yes, we would assume a rational miner would maximize the amount of fees they can possibly obtain. But this is not mandatory.


---

