Files
bitcoin/src
Lőrinc 1907b3f56c 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 14:04:00 +01:00
..
2025-09-09 10:13:49 +01:00
2025-08-20 12:01:35 +01:00
2026-06-02 09:23:42 +01:00
2025-08-20 12:01:35 +01:00
2025-08-20 11:59:45 +01:00
2025-08-20 12:01:35 +01:00
2025-07-04 16:35:35 +01:00
2026-06-22 14:04:00 +01:00