<p>The function, which is found in main.cpp is called CheckTransaction():
<a href="https://github.com/bitcoin/bitcoin/blob/master/src/main.cpp#L526" rel="nofollow">https://github.com/bitcoin/bitcoin/blob/master/src/main.cpp#L526</a></p>

CC BY-SA 3.0
2013-04-30T02:07:38.327Z
2013-04-30T02:07:38.327Z
Kinnard Hockenhull
<p>Which file(s) are responsible for the procedure which confirms that transactions are well-formed, specifically that "Size in bytes &lt; MAX_BLOCK_SIZE" as described in the Protocol Rules article on the wiki: <a href="https://en.bitcoin.it/wiki/Protocol_rules" rel="nofollow">https://en.bitcoin.it/wiki/Protocol_rules</a>?</p>

<transactions><client>
Which function in which file verifies that transactions are the right size
Kinnard Hockenhull
# Which function in which file verifies that transactions are the right size

(Asked by: username_0 on 2013-04-30)

Which file(s) are responsible for the procedure which confirms that transactions are well-formed, specifically that "Size in bytes < MAX\_BLOCK\_SIZE" as described in the Protocol Rules article on the wiki: <https://en.bitcoin.it/wiki/Protocol_rules>?

**Tags:** transactions, client


---

## 1 answers

### Answer by username_0 on 2013-04-30. Score: 1

The function, which is found in main.cpp is called CheckTransaction():
<https://github.com/bitcoin/bitcoin/blob/master/src/main.cpp#L526>


---

