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-03-09 10:11:08 +00:00
2026-06-19 18:47:09 +02:00
2026-02-18 21:29:07 +01:00
2026-02-02 19:32:14 +01:00
2026-06-19 18:47:08 +02:00
2026-03-06 01:05:52 +01:00
2026-01-27 13:08:50 +01:00
2026-03-02 22:00:53 +01:00
2026-04-08 11:17:45 +08:00
2026-04-03 10:40:26 +08:00
2026-06-19 18:46:55 +02:00
2026-02-02 17:22:31 +00:00
2026-04-29 19:51:43 +01:00
2026-02-25 17:38:13 +01:00
2026-02-09 15:55:58 -05:00
2026-03-23 07:32:14 +08:00
2026-06-19 18:47:09 +02:00
2026-03-08 14:23:49 +00:00
2026-02-02 15:21:14 +00:00
2026-02-13 08:50:50 +01:00
2026-06-22 10:39:47 +01:00
2026-01-31 10:41:50 +00:00
2026-03-09 10:54:47 +00:00
2026-05-20 15:26:47 +01:00
2026-01-29 14:38:35 +00:00
2026-01-29 14:38:35 +00:00
2026-02-06 08:37:19 +01:00
2026-02-13 10:52:25 +01: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-03-10 14:09:27 -04:00
2026-02-20 09:27:17 +01:00
2026-02-23 15:56:25 +01:00
2026-02-23 15:56:25 +01:00
2026-02-09 13:32:28 +00:00
2026-06-22 10:39:43 +01:00
2026-06-22 10:39:43 +01:00
2026-02-13 10:52:25 +01:00
2026-02-17 12:55:26 +01:00
2026-02-17 12:55:26 +01:00
2026-02-02 17:22:31 +00:00
2026-02-19 12:41:12 -08:00
2026-01-30 16:17:12 -05:00
2026-03-06 12:07:41 -08:00
2026-02-02 17:22:31 +00:00
2026-02-02 17:22:31 +00:00
2026-05-22 10:41:23 +01:00
2026-04-16 09:10:22 +01:00
2026-02-11 19:46:19 -05:00
2026-06-19 18:47:09 +02:00
2026-06-19 18:47:09 +02:00
2026-01-23 13:25:42 +01:00
2026-02-11 19:46:12 -05:00
2026-02-11 19:46:12 -05:00
2026-02-06 07:56:57 +01:00
2026-03-04 15:17:02 +00:00
2026-02-02 17:22:31 +00:00
2026-02-09 13:32:28 +00:00
2026-02-02 17:55:10 +01:00
2026-02-02 17:22:31 +00:00
2026-02-07 23:01:17 +01:00
2026-02-02 17:22:31 +00:00
2026-02-02 17:22:31 +00:00
2026-06-22 10:39:47 +01:00
2026-06-22 10:39:47 +01:00
2026-02-24 10:08:47 -05:00
2026-02-24 10:08:47 -05:00
2026-02-24 10:08:47 -05:00
2026-04-29 19:51:43 +01:00
2026-04-29 19:51:43 +01:00
2026-06-22 10:39:47 +01:00
2026-03-06 08:22:42 -08:00
2026-02-02 17:22:31 +00:00