Skip to content

feat(net): optimize sync block processing logic#5130

Merged
xxo1shine merged 2 commits intotronprotocol:release_v4.7.2from
xxo1shine:sync_block_prco
Apr 17, 2023
Merged

feat(net): optimize sync block processing logic#5130
xxo1shine merged 2 commits intotronprotocol:release_v4.7.2from
xxo1shine:sync_block_prco

Conversation

@xxo1shine
Copy link
Copy Markdown
Collaborator

What does this PR do?
Optimize sync block processing logic

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #5130 (ab6a65e) into release_v4.7.2 (74b34bc) will increase coverage by 0.05%.
The diff coverage is 41.66%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@                 Coverage Diff                  @@
##             release_v4.7.2    #5130      +/-   ##
====================================================
+ Coverage             55.81%   55.86%   +0.05%     
- Complexity             8352     8363      +11     
====================================================
  Files                   836      836              
  Lines                 49567    49594      +27     
  Branches               5512     5517       +5     
====================================================
+ Hits                  27666    27707      +41     
+ Misses                19682    19668      -14     
  Partials               2219     2219              
Impacted Files Coverage Δ
...c/main/java/org/tron/core/net/TronNetDelegate.java 41.60% <0.00%> (-1.03%) ⬇️
...va/org/tron/core/net/service/sync/SyncService.java 28.64% <0.00%> (-1.64%) ⬇️
...ava/org/tron/core/exception/BadBlockException.java 81.25% <91.66%> (+31.25%) ⬆️
...ain/java/org/tron/core/exception/P2pException.java 70.73% <100.00%> (+1.50%) ⬆️
...mework/src/main/java/org/tron/core/db/Manager.java 53.06% <100.00%> (-0.08%) ⬇️

... and 11 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@xxo1shine xxo1shine merged commit 54c05e5 into tronprotocol:release_v4.7.2 Apr 17, 2023
@xxo1shine xxo1shine deleted the sync_block_prco branch July 14, 2023 09:09
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