<p>Conveniently, the file is called <a href="https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp" rel="nofollow noreferrer">validation.cpp</a>.  You probably want to look at the function <code>CheckBlock</code>.</p>

CC BY-SA 3.0
2017-10-27T03:12:28.983Z
2017-10-27T03:12:28.983Z
Nate Eldredge
<p>Which part of the code is responsible for validating blocks? I'm working on a BIP to modify the structure of block.h, and I think that would definitely affect the validation process. Can anyone point me in the right direction for the files I would need to change to update the validation process?</p>

<blockchain><development><block><validation>
Block validation files?
doc_sportello
# Block validation files?

(Asked by: username_0 on 2017-10-26)

Which part of the code is responsible for validating blocks? I'm working on a BIP to modify the structure of block.h, and I think that would definitely affect the validation process. Can anyone point me in the right direction for the files I would need to change to update the validation process?

**Tags:** blockchain, development, block, validation


---

## 1 answers

### Answer by username_1 on 2017-10-27. Score: 1

Conveniently, the file is called [validation.cpp](https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp). You probably want to look at the function `CheckBlock`.


---

