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

[sync] release one rlock and change default value at getMaxPeerHeight #3973

Merged
merged 3 commits into from
Jan 10, 2022

Conversation

JackyWYX
Copy link
Contributor

@JackyWYX JackyWYX commented Jan 6, 2022

Issue

Release one rlock when iterating peers in sync. And change the default return result of getMaxPeerHeight as max uint64

Test

Passed local tests.

@JackyWYX JackyWYX requested a review from rlan35 January 6, 2022 18:50
@JackyWYX JackyWYX self-assigned this Jan 6, 2022
@rlan35
Copy link
Contributor

rlan35 commented Jan 6, 2022

please fix travis.

@rlan35
Copy link
Contributor

rlan35 commented Jan 7, 2022

This PR caused "Error: SyncStatus.TargetIndex is negative: /network/status: /network/status not attempting retry: unable to initialize asserter" on rosetta tests.

@JackyWYX
Copy link
Contributor Author

JackyWYX commented Jan 7, 2022 via email

@JackyWYX JackyWYX changed the title [sync] release one rlock [sync] release one rlock and change default value at getMaxPeerHeight Jan 7, 2022
@sophoah
Copy link
Contributor

sophoah commented Jan 10, 2022

This PR has been tested on a few multiple RPC nodes and was confirmed to fix the node-sync status so far. With travis build fix, I'll merge that one now

@sophoah sophoah merged commit 4615505 into harmony-one:main Jan 10, 2022
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