Skip to content

[29.x] 29.4rc1 - #35450

Merged
sedited merged 8 commits into
bitcoin:29.xfrom
fanquake:29_4_rc1
Jun 23, 2026
Merged

sedited merged 8 commits into
bitcoin:29.xfrom
fanquake:29_4_rc1

Conversation

@fanquake

@fanquake fanquake commented Jun 3, 2026 •

Copy link
Copy Markdown
Member

@fanquake fanquake added this to the 29.4 milestone Jun 3, 2026
@DrahtBot

DrahtBot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35450.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK sedited

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

This is no-longer a proper subtree, because of direct cherry-picks.
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
l0rinc and others added 6 commits June 22, 2026 14:03
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]

@sedited sedited left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 88cd3a7

@sedited
sedited merged commit 01b4861 into bitcoin:29.x Jun 23, 2026
37 of 38 checks passed
@l0rinc

l0rinc commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

ACK 88cd3a7

Note that the commits include #34918

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants