Skip to content

Optimize light sync sync logic #352

@yanguoyu

Description

@yanguoyu

This is an optimization from discord https://discord.com/channels/956765352514183188/958262323397689354/1191544570048151623.
Currently, for the light client, every wallet has its sync progress, and when we switch to another wallet, the last choose wallet subscribe lock scripts will stop subscribing.

We can optimize the logic by only removing the lock scripts that the sync block number is less than the current min synced block number. Then if all of the wallets synced to the same block number, when we switch to another wallet, other wallets will continue to sync and not break the current wallet sync.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions