Skip to content

Optimize light node synchronization logic #4323

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

Merged
merged 3 commits into from
Apr 26, 2022

Conversation

xxo1shine
Copy link
Contributor

What does this PR do?
Optimize light node synchronization logic.
refer to tronprotocol/tips#388

Why are these changes required?
Make the node quickly find a node that can establish an effective connection, avoid repeatedly connecting invalid nodes, and improve the efficiency of connection establishment.

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (release_v4.5.0@f5822b0). Click here to learn what that means.
The diff coverage is n/a.

@@                Coverage Diff                @@
##             release_v4.5.0    #4323   +/-   ##
=================================================
  Coverage                  ?   53.44%           
  Complexity                ?     7700           
=================================================
  Files                     ?      813           
  Lines                     ?    46354           
  Branches                  ?     5049           
=================================================
  Hits                      ?    24773           
  Misses                    ?    19626           
  Partials                  ?     1955           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5822b0...8c1ad4b. Read the comment docs.

@lvs007 lvs007 requested a review from tomatoishealthy April 26, 2022 03:55
Copy link
Contributor

@tomatoishealthy tomatoishealthy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lvs007 lvs007 merged commit c0c456f into tronprotocol:release_v4.5.0 Apr 26, 2022
@xxo1shine xxo1shine deleted the opt_light_node_sync branch April 28, 2022 09:36
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.

4 participants