<p>There are also the '<a href="https://bitcoin.stackexchange.com/questions/tagged/non-standard-transaction">standardness rules</a>', which are separate from 'validity rules'. So this means a transaction can be either valid and standard, valid but non-standard, or invalid. </p>

<p>A node can choose to broadcast any transaction it would like to the network, or none at all. </p>

<p>If a node broadcasts invalid transactions, then it is likely that its peers will disconnect, due to misbehaviour. An invalid transaction cannot possibly be included in a valid block. </p>

<p>The bitcoin-core core code does not relay non-standard transactions, <a href="https://bitcoin.stackexchange.com/questions/73728/why-can-non-standard-transactions-be-mined-but-not-relayed">but it will still accept blocks that include them</a> (since they are still valid). This lack of relaying the non-standard transactions is a safety measure to prevent DoS attacks, etc. You can find some good info about issues with relaying non-standard transactions <a href="https://bitcoin.stackexchange.com/questions/76541/whats-the-use-of-not-relaying-non-standard-transactions-if-anyone-can-still-use">here</a>.</p>

<p>Even for standard transactions, there is no stipulation that requires a node to relay them through the network. Many nodes will do so, but this is entirely up to that specific node's policy.</p>

CC BY-SA 4.0
2019-12-30T21:45:21.113Z
Awesome thanks @chytrik!
foba
CC BY-SA 4.0
2019-12-30T21:17:04.037Z
2019-12-30T21:17:04.037Z
chytrik
<p>Do Bitcoin nodes propagate every transaction or only transactions that meet certain criteria? For instance, a transaction with a fee of 0 won't necessarily get included into a block and it might even be excluded from a node's mempool but would that transaction still get propagated throughout the entire network? Or can node choose not to propagate certain transactions? </p>

<p>If there is some criteria to which transactions get propagated what are they? I am guessing at the very least that nodes won't propagate invalid transactions?</p>

<nodes><mempool><peers><transaction-propagation>
Transaction propagation criteria vs mempool inclusion cirteria
foba
# Transaction propagation criteria vs mempool inclusion cirteria

(Asked by: username_0 on 2019-12-30)

Do Bitcoin nodes propagate every transaction or only transactions that meet certain criteria? For instance, a transaction with a fee of 0 won't necessarily get included into a block and it might even be excluded from a node's mempool but would that transaction still get propagated throughout the entire network? Or can node choose not to propagate certain transactions?

If there is some criteria to which transactions get propagated what are they? I am guessing at the very least that nodes won't propagate invalid transactions?

**Tags:** nodes, mempool, peers, transaction-propagation


---

## 1 answers

### Answer by username_1 on 2019-12-30. Score: 3 | Accepted answer

There are also the '[standardness rules](https://bitcoin.stackexchange.com/questions/tagged/non-standard-transaction)', which are separate from 'validity rules'. So this means a transaction can be either valid and standard, valid but non-standard, or invalid.

A node can choose to broadcast any transaction it would like to the network, or none at all.

If a node broadcasts invalid transactions, then it is likely that its peers will disconnect, due to misbehaviour. An invalid transaction cannot possibly be included in a valid block.

The bitcoin-core core code does not relay non-standard transactions, [but it will still accept blocks that include them](https://bitcoin.stackexchange.com/questions/73728/why-can-non-standard-transactions-be-mined-but-not-relayed) (since they are still valid). This lack of relaying the non-standard transactions is a safety measure to prevent DoS attacks, etc. You can find some good info about issues with relaying non-standard transactions [here](https://bitcoin.stackexchange.com/questions/76541/whats-the-use-of-not-relaying-non-standard-transactions-if-anyone-can-still-use).

Even for standard transactions, there is no stipulation that requires a node to relay them through the network. Many nodes will do so, but this is entirely up to that specific node's policy.

> **Comments:**
> **username_0**: Awesome thanks @username_1!  

---

