Files
bitcoin/src
Lőrinc ea3b318d8d coins: compact chainstate in background
Full chainstate compaction can take minutes on large databases.
Move `CCoinsViewDB::CompactFull()` to a named `utxocompact` one-shot background thread so validation only schedules the work.

When validation selects compaction after a full flush, the chainstate was just written and another write is less likely to be needed immediately.
The coins view destructor waits for completion, and a mutex prevents compaction from using `m_db` while `ResizeCache()` replaces it.

Co-authored-by: Andrew Toth <andrewstoth@gmail.com>

Github-Pull: #35465
Rebased-From: 394e473d42
2026-06-22 10:39:47 +01:00
..
2026-06-19 18:46:55 +02:00
2026-02-17 21:40:46 +05:30
2026-02-25 14:36:19 -08:00
2026-02-02 17:22:31 +00:00
2026-06-22 10:39:47 +01:00