<p>The wiki is terribly outdated, check out the Bitcoin developer guide instead:</p>

<blockquote>
  <p>The response to a <code>getdata</code> message can be a <code>tx</code> message, <code>block</code> message, <code>merkleblock</code> message, or <code>notfound</code> message.</p>
</blockquote>

<p>Source: <a href="https://bitcoin.org/en/developer-reference#getdata" rel="nofollow noreferrer">https://bitcoin.org/en/developer-reference#getdata</a></p>

CC BY-SA 3.0
2017-06-12T15:29:22.473Z
2017-06-12T15:29:22.473Z
Murch
<p>I was checking the <a href="https://en.bitcoin.it/wiki/Protocol_documentation#Message_types" rel="nofollow noreferrer">message types</a> of the Bitcoin protocol and got curious whether there is a difference between relayin a transaction and a block, or not? </p>

<p>For example, <em>notfound</em> message say that <code>notfound is a response to a getdata, sent if any requested data items could not be relayed, for example, because the requested transaction was not in the memory pool or relay set.</code> Does it mean that <code>getdata</code> is only used for transactions?</p>

<transactions><block><relay><message>
Is there a difference between relaying a transaction and relaying a block?
Önder Gürcan
# Is there a difference between relaying a transaction and relaying a block?

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

I was checking the [message types](https://en.bitcoin.it/wiki/Protocol_documentation#Message_types) of the Bitcoin protocol and got curious whether there is a difference between relayin a transaction and a block, or not?

For example, *notfound* message say that `notfound is a response to a getdata, sent if any requested data items could not be relayed, for example, because the requested transaction was not in the memory pool or relay set.` Does it mean that `getdata` is only used for transactions?

**Tags:** transactions, block, relay, message


---

## 1 answers

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

The wiki is terribly outdated, check out the Bitcoin developer guide instead:

> The response to a `getdata` message can be a `tx` message, `block` message, `merkleblock` message, or `notfound` message.

Source: <https://bitcoin.org/en/developer-reference#getdata>


---

