-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add faster shield sync #430
Conversation
✅ Deploy Preview for cheery-moxie-4f1121 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK 9284d8a
Seriously powerful improvement, speed is subjective, but even in my sub-par speed environment, a 3-4x improvement is minimally visible, I imagine this will be even better for faster connections given there's no more constant TCP-handshake overhead with thousands of requests, but a single stream.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works really good and sync time is much faster.
I left a couple of nits and a question about why some bytes of the stream are not parsed.
The logic surely needs a big refactor (in particular we should split the part of receiving the stream from the part of parsing it), but it can be done in another PR
}, | ||
blockHeights.length, | ||
batchSize | ||
); | ||
getEventEmitter().emit('shield-sync-status-update', 0, 0, true); | ||
} catch (e) { | ||
debugError(DebugTopics.WALLET, e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for future PR: we have to change this flow
errors finish in the catch block and after that wallet is just marked as synced even if it failed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK f8d45ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK f8d45ee
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK 2bdd937
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK 2bdd937
Synced, resynced, quit-halfway-and-continued, etc, various times. Looking good!
Abstract
Add faster shield sync.
This needs pivx shield and PivxNodeController updates
Testing