Files
bitcoin/src/node
merge-script 064122af26 Merge bitcoin/bitcoin#36181: ci: Upgrade IWYU to 0.27 compatible with Clang 23
3b944f194f iwyu: Switch to generated Clang intrinsics mapping file (Hennadii Stepanov)
1b5ee3be59 ci: Upgrade IWYU to 0.27 compatible with Clang 23 (Hennadii Stepanov)
6ed7c535ad iwyu: Prefer canonical headers (Hennadii Stepanov)

Pull request description:

  The new IWYU [release](https://github.com/include-what-you-use/include-what-you-use/tree/clang_23) includes several improvements and bug fixes, including:
  - https://github.com/include-what-you-use/include-what-you-use/pull/1991
  - https://github.com/include-what-you-use/include-what-you-use/pull/2013
  - https://github.com/include-what-you-use/include-what-you-use/pull/2014
  - https://github.com/include-what-you-use/include-what-you-use/pull/2058
  - https://github.com/include-what-you-use/include-what-you-use/pull/2062
  - https://github.com/include-what-you-use/include-what-you-use/pull/2093

  This allows us to remove all corresponding workarounds and patches.

  Additionally, the compiler intrinsics mapping has switched from a hardcoded file to a dynamically generated one.

ACKs for top commit:
  fanquake:
    ACK 3b944f194f
  l0rinc:
    shallow code review ACK 3b944f194f

Tree-SHA512: b4b92be735244c00f667657f55501d60fd65a1b77e39b40275cdb7b82c95b6b53e9df6fa7f36560f0578a175bf61f6dc4409e167c6fdbc2248d957c17a916a67
2026-09-09 12:00:40 +01:00
..

src/node/

The src/node/ directory contains code that needs to access node state (state in CChain, CBlockIndex, CCoinsView, CTxMemPool, and similar classes).

Code in src/node/ is meant to be segregated from code in src/wallet/ and src/qt/, to ensure wallet and GUI code changes don't interfere with node operation, to allow wallet and GUI code to run in separate processes, and to perhaps eventually allow wallet and GUI code to be maintained in separate source repositories.

As a rule of thumb, code in one of the src/node/, src/wallet/, or src/qt/ directories should avoid calling code in the other directories directly, and only invoke it indirectly through the more limited src/interfaces/ classes.

This directory is at the moment sparsely populated. Eventually more substantial files like src/validation.cpp and src/txmempool.cpp might be moved there.