• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

README.mdH A D17-May-20211.1 KiB2318

coin.cppH A D17-May-2021787 2416

coin.hH A D17-May-2021696 258

coinstats.cppH A D17-May-20212.5 KiB7462

coinstats.hH A D17-May-2021861 3520

context.cppH A D17-May-2021397 158

context.hH A D17-May-20211.8 KiB4825

psbt.cppH A D17-May-20215.4 KiB148109

psbt.hH A D17-May-20212.1 KiB5531

transaction.cppH A D17-May-20213.3 KiB8652

transaction.hH A D17-May-20211.5 KiB348

utxo_snapshot.hH A D17-May-20211.6 KiB5128

README.md

1# src/node/
2
3The [`src/node/`](./) directory contains code that needs to access node state
4(state in `CChain`, `CBlockIndex`, `CCoinsView`, `CTxMemPool`, and similar
5classes).
6
7Code in [`src/node/`](./) is meant to be segregated from code in
8[`src/wallet/`](../wallet/) and [`src/qt/`](../qt/), to ensure wallet and GUI
9code changes don't interfere with node operation, to allow wallet and GUI code
10to run in separate processes, and to perhaps eventually allow wallet and GUI
11code to be maintained in separate source repositories.
12
13As a rule of thumb, code in one of the [`src/node/`](./),
14[`src/wallet/`](../wallet/), or [`src/qt/`](../qt/) directories should avoid
15calling code in the other directories directly, and only invoke it indirectly
16through the more limited [`src/interfaces/`](../interfaces/) classes.
17
18The [`src/node/`](./) directory is a new directory introduced in
19[#14978](https://github.com/bitcoin/bitcoin/pull/14978) and at the moment is
20sparsely populated. Eventually more substantial files like
21[`src/validation.cpp`](../validation.cpp) and
22[`src/txmempool.cpp`](../txmempool.cpp) might be moved there.
23