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

Ledger state syncing / pull missing transactions - minor cleanup and improvements. #125

Merged
merged 6 commits into from
Jul 17, 2019

Conversation

a-urth
Copy link
Contributor

@a-urth a-urth commented Jul 9, 2019

Stop pulling missing transactions in case state sync needs to be done immediately instead of waiting for now more missing transaction
Lower most of syncing related timeouts - pulling, querying etc
Add check for live connections in most places - before pulling and for SelectPeers
Change how gossip network part works - do not store streams, create new stream each time instead and just pass in case of error - it avoid problem using "dead" connection and connection which were not removed from map. And since we send transactions in batch overhead of creating new connection is not that big.

@a-urth a-urth requested a review from iwasaki-kenta July 9, 2019 09:14
@a-urth a-urth self-assigned this Jul 9, 2019
@a-urth a-urth changed the title WIP: Ledger state syncing / pull missing transactions Ledger state syncing / pull missing transactions - minor bits Jul 15, 2019
@a-urth
Copy link
Contributor Author

a-urth commented Jul 15, 2019

@losfair cleaned up code from comments and prints, added description to what was actually done within this PR.
Syncing/snowball changes as discussed will be done in separate PR
@iwasaki-kenta fyi

@a-urth
Copy link
Contributor Author

a-urth commented Jul 17, 2019

@losfair or @iwasaki-kenta if its ok can we please merge it? since there are some changes in here which i want to use in order to test syncing fix in other branch?

@iwasaki-kenta iwasaki-kenta added the enhancement New feature or request label Jul 17, 2019
@iwasaki-kenta iwasaki-kenta changed the title Ledger state syncing / pull missing transactions - minor bits Ledger state syncing / pull missing transactions - minor cleanup and improvements. Jul 17, 2019
@iwasaki-kenta
Copy link
Contributor

@losfair or @iwasaki-kenta if its ok can we please merge it? since there are some changes in here which i want to use in order to test syncing fix in other branch?

Looks good, LGTM.

@iwasaki-kenta iwasaki-kenta merged commit c483488 into master Jul 17, 2019
@iwasaki-kenta iwasaki-kenta deleted the ledger-syncing branch July 17, 2019 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants