+
Skip to content

Conversation

GheisMohammadi
Copy link
Collaborator

@GheisMohammadi GheisMohammadi commented Mar 7, 2025

This PR enhances Stream Management by implementing a reconnection mechanism and optimizing buffer and memory usage. Key improvements include:

  • Reconnection Logic: Streams now supports reconnecting function. Later we use this function to attempt to reconnect up to 3 times with a few seconds interval between attempts before failing.
  • Memory Optimization: Improved buffer pooling to reduce unnecessary allocations and enhance performance.
  • Block Request Timeout: Increased timeout for Block Requests in stream sync to fix context deadline issue.
  • Unexpected Block Handling: Added validation for unexpected blocks in the database and ensured proper head adjustments.
  • Estimate Current Number: Minor optimization for more accurate block height estimation in long range.

@GheisMohammadi GheisMohammadi self-assigned this Mar 7, 2025
@GheisMohammadi GheisMohammadi marked this pull request as draft March 7, 2025 12:57
@GheisMohammadi GheisMohammadi changed the title Optimize Stteam Handling, Fix Streamnet Sync Issues Optimize Stream Handling, Fix Streamnet Sync Issues Mar 7, 2025
@GheisMohammadi GheisMohammadi changed the title Optimize Stream Handling, Fix Streamnet Sync Issues Enhance Stream Handling, Fix Streamnet Sync Issues Mar 7, 2025
@GheisMohammadi GheisMohammadi marked this pull request as ready for review March 10, 2025 03:57
@GheisMohammadi GheisMohammadi force-pushed the fix/streamnet_nodes_stuck branch from 336f474 to 60130bf Compare March 12, 2025 04:46
@GheisMohammadi GheisMohammadi merged commit 420cd94 into dev Mar 13, 2025
4 checks passed
@mur-me mur-me deleted the fix/streamnet_nodes_stuck branch March 13, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载