Bitcoin Core reads and writes the UTXO set through layered views defined around CCoinsView in src/coins.h: CCoinsViewCache keeps an in-memory cache on top of another view, and CCoinsViewDB is backed by the coin database in the node's chainstate directory.
Sources and checks
T1Bitcoin Core src/coins.h, CCoinsViewSource code, says this directly
Pure abstract view on the open txout dataset.
doc comment above class CCoinsView, read 2026-11-20
T1Bitcoin Core src/coins.h, CCoinsViewCacheSource code, says this directly
CCoinsView that adds a memory cache for transactions to another CCoinsView
doc comment above class CCoinsViewCache, read 2026-11-20
T1Bitcoin Core src/txdb.h, CCoinsViewDBSource code, says this directly
CCoinsView backed by the coin database (chainstate/)
doc comment above class CCoinsViewDB, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/coins.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/coins.h | grep -nF 'class CCoinsViewCache : public CCoinsViewBacked'bitcoin/bitcoin at f498a5a671 contains this text in src/txdb.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/txdb.h | grep -nF 'class CCoinsViewDB final : public CCoinsView'Checked at block 976,842, 21 Nov 2026, 04:28 UTC: recheck, quotes 3/3, code 2/2
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 16:42 UTCblock 976,753
Published Revision 1, run 2026-11-20-seed-utxo-model