Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪲[Bug] Sync freezes indefinitely #40

Open
kcw-grunt opened this issue Nov 25, 2024 · 0 comments
Open

🪲[Bug] Sync freezes indefinitely #40

kcw-grunt opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@kcw-grunt
Copy link
Member

kcw-grunt commented Nov 25, 2024

Problem

When the user tries to perform a full sync the connected node could freeze and stop sending blocks

Background

The users all are dependent on the quality of the Litecoin network near them.
Here are the steps to perform sync:

  1. Client (Android or iOS) asks loafwallet-core to start syncing.
  2. Asks to gather available peers (nodes) ip addresses
  3. Randomly open a session with the peer (node)
  4. Client asks the peer for a certain Litecoin block
  5. Client checks the block for any matching addresses and saves any into the database while add the values
  6. Client asks the peer for a the next Litecoin block

So client is waiting on the peer and there is no current way to reset or disconnect from the peer

This may be the location where a disconnect can occur if the peer stuck on the same block

BRPeerManager.c

Sync Freeze clip
sync-frozen-must-restart
@kcw-grunt kcw-grunt added the bug label Nov 25, 2024
@kcw-grunt kcw-grunt added this to the v1.3.0 milestone Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@kcw-grunt @andhikayuana @josikie and others