Skip to content

Conversation

@GheisMohammadi
Copy link
Collaborator

@GheisMohammadi GheisMohammadi commented Oct 13, 2025

This PR addresses testnet instability issues by implementing robust block cache management and validation mechanisms in the staged stream synchronization process. The changes focus on preventing data corruption and ensuring reliable block synchronization across the network. It removes unused cache functionality in the stage block hashes component. This simplification helps reduce the complexity of the caching system and makes the code more maintainable. It introduces comprehensive validation for block hashes stored in the cache before they are used during synchronization. The PR implements automatic cleanup of block caches when block data is detected as corrupted or not properly saved. This self-healing mechanism ensures that when data integrity issues are detected, the system can recover by clearing the problematic cache entries and allowing fresh data to be fetched. This prevents the accumulation of bad data that could cause persistent synchronization issues.

@GheisMohammadi GheisMohammadi self-assigned this Oct 13, 2025
@GheisMohammadi GheisMohammadi added the staged-sync Staged Sync label Oct 13, 2025
@GheisMohammadi GheisMohammadi marked this pull request as draft October 13, 2025 14:15
@GheisMohammadi GheisMohammadi marked this pull request as ready for review October 14, 2025 08:56
@GheisMohammadi GheisMohammadi force-pushed the fix/testnet_instability branch from 9963b1c to 38d4fb7 Compare October 15, 2025 01:16
@Frozen Frozen merged commit 6603037 into dev Oct 15, 2025
3 checks passed
@Frozen Frozen deleted the fix/testnet_instability branch October 15, 2025 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

staged-sync Staged Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants