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
2024-09-17 09:54:18 +02:00
2024-11-11 14:14:39 +00:00
2024-11-26 20:47:08 -05:00
2024-12-05 14:37:47 +00: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
2024-11-04 14:19:40 -05:00
2025-07-04 16:35:35 +01:00
2024-09-10 11:20:40 -03:00
2025-01-22 11:29:05 +01:00
2025-01-22 11:29:05 +01:00
2025-01-14 19:01:53 +01:00
2024-10-21 23:24:17 +02:00
2024-12-19 13:46:52 +01:00
2026-06-22 14:04:00 +01:00
2024-12-31 00:04:20 -03:00