Skip to content

Conversation

@l0rinc
Copy link
Owner

@l0rinc l0rinc commented Dec 2, 2025

alternative to bitcoin#32885

@l0rinc l0rinc force-pushed the detached433 branch 2 times, most recently from 5aac13d to 38b962f Compare December 2, 2025 16:02
@l0rinc l0rinc force-pushed the detached433 branch 7 times, most recently from 5d85f59 to 3ad1312 Compare December 2, 2025 21:58
l0rinc added 4 commits January 2, 2026 10:19
Refactor the tip checks for recency and work out of `ChainstateManager::IsInitialBlockDownload()` into `CChain::IsTipRecent`.
Introduce `ChainstateManager::SetTip` as the single entry point for updating the active chain tip, and replace the direct m_chain.SetTip() call in ConnectTip() with this helper. This centralizes active tip updates on the manager and prepares for caching IBD-related state around tip changes.
Latch tip recency in `m_cached_tip_recent` when `SetTip()` updates the active chain, so `IsInitialBlockDownload()` can rely on the cached value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants