Repository navigation
[30.x] 30.3rc1 - #35452
[30.x] 30.3rc1#35452
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35452. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste |
|
Can we have something like this in the release notes. Also for 29 point release (and possibly 31 if we don't have an automatic compaction patch merged):
|
This is no-longer a proper subtree, because of direct cherry-picks.
Pulled that into the release notes. |
Add `CDBWrapper::GetProperty()` and expose it through `CCoinsViewDB::GetDBProperty()` so coins tests can inspect LevelDB runtime properties through the coins view. Use it in a coins DB flush baseline that records the LevelDB layout after flushing while keeping readback coverage for the flushed coin and best block. Co-authored-by: Andrew Toth <[email protected]> Github-Pull: bitcoin#35465 Rebased-From: b10889d
bc63be0 to
5cb058a
Compare
ca25bb7 to
98852b9
Compare
| m_chainman.m_options.signals->ChainStateFlushed(this->GetRole(), GetLocator(m_chain.Tip())); | ||
| } | ||
|
|
||
| if (!m_chainman.m_interrupt && m_chainman.m_chainstates.size() == 1) { // Skip AssumeUTXO |
There was a problem hiding this comment.
In commit cbdb11da241cd39cc2d1813369fa25e1987d98c5
I think you want m_chainman.GetAll().size() here instead of m_chainman.m_chainstates.size() (and probably in the 29 backport too to make the ancestor commit CI pass).
Full chainstate flushes are convenient maintenance points for long-term LevelDB cleanup because the chainstate was just written. Randomize the trigger so nodes that flush near the same height do not compact together. Add blocking chainstate compaction through `CCoinsViewDB::CompactFull()` and give each post-IBD full flush on the normal chainstate a 1/320 chance to start compaction. With hourly flushes this averages roughly every two weeks and makes a six-month miss about one in a million. This keeps the schedule stateless and leaves last-compaction height or timestamp bookkeeping out of chainstate metadata. Co-authored-by: Andrew Toth <[email protected]> Github-Pull: bitcoin#35465 Rebased-From: aa021b2
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 <[email protected]> Github-Pull: bitcoin#35465 Rebased-From: 394e473
These are unused and removing them avoids clang warnings like: src/test/fuzz/deserialize.cpp:42:26: error: variable g_setup set but not used [-Werror,-Wunused-but-set-variable] Github-Pull: bitcoin#34918 Rebased-From: fabbfec
Backports:
Final changes for v
30.3rc1.Backports since
30.2: