Skip to content

feat: add forward syncer - #639

Merged
KolbyML merged 1 commit into
ReamLabs:masterfrom
KolbyML:work-on-forward-sync
Jul 13, 2025
Merged

feat: add forward syncer#639
KolbyML merged 1 commit into
ReamLabs:masterfrom
KolbyML:work-on-forward-sync

Conversation

@KolbyML

@KolbyML KolbyML commented Jul 12, 2025

Copy link
Copy Markdown
Contributor

What was wrong?

We can't sync forward from the initial checkpoint

How was it fixed?

Implement a forward syncer which takes our connected peers, downloads blocks and blobs, and executes them till we get to the finalized point.

What I will do in follow up PR's

Currently syncing blobs will eventually freeze due to peers never responding and we don't implement timing out requests yet, so I need to implement timing out P2P requests.

@KolbyML
KolbyML force-pushed the work-on-forward-sync branch from ef6ea19 to b381870 Compare July 12, 2025 21:56
use super::{MAX_BLOCKS_PER_REQUEST, peer_range_downloader::Range};

/// The size of blobs is 1 MB (1_048_576 bytes)
const BLOB_SIZE: u64 = 1_048_576;

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.

Isn't blob size 128 KB?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah my bad, I will update that

@KolbyML
KolbyML force-pushed the work-on-forward-sync branch 4 times, most recently from b62123a to 3e04a93 Compare July 13, 2025 18:43
@KolbyML
KolbyML force-pushed the work-on-forward-sync branch from 3e04a93 to 1e7f6c7 Compare July 13, 2025 23:22
@KolbyML
KolbyML marked this pull request as ready for review July 13, 2025 23:23

@Kayden-ML Kayden-ML 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.

Looks good nice work 👍

@KolbyML
KolbyML added this pull request to the merge queue Jul 13, 2025
Merged via the queue into ReamLabs:master with commit 996d75e Jul 13, 2025
14 checks passed
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.

3 participants